mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Test to see if bread crumb present.
This commit is contained in:
@@ -34,6 +34,8 @@ class AccountControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$this->call('GET', route('accounts.create', ['asset']));
|
$this->call('GET', route('accounts.create', ['asset']));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,6 +46,8 @@ class AccountControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$this->call('GET', route('accounts.delete', [1]));
|
$this->call('GET', route('accounts.delete', [1]));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,6 +69,8 @@ class AccountControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$this->call('GET', route('accounts.edit', [1]));
|
$this->call('GET', route('accounts.edit', [1]));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -79,6 +85,8 @@ class AccountControllerTest extends TestCase
|
|||||||
$this->changeDateRange($this->user(), $range);
|
$this->changeDateRange($this->user(), $range);
|
||||||
$this->call('GET', route('accounts.index', ['asset']));
|
$this->call('GET', route('accounts.index', ['asset']));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -98,6 +106,8 @@ class AccountControllerTest extends TestCase
|
|||||||
$this->changeDateRange($this->user(), $range);
|
$this->changeDateRange($this->user(), $range);
|
||||||
$this->call('GET', route('accounts.show', [1]));
|
$this->call('GET', route('accounts.show', [1]));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -112,6 +122,8 @@ class AccountControllerTest extends TestCase
|
|||||||
$this->changeDateRange($this->user(), $range);
|
$this->changeDateRange($this->user(), $range);
|
||||||
$this->call('GET', route('accounts.show.date', [1, '2016-01-01']));
|
$this->call('GET', route('accounts.show.date', [1, '2016-01-01']));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -53,6 +53,9 @@ class ConfigurationControllerTest extends TestCase
|
|||||||
|
|
||||||
$this->call('GET', route('admin.configuration.index'));
|
$this->call('GET', route('admin.configuration.index'));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -40,6 +40,8 @@ class DomainControllerTest extends TestCase
|
|||||||
$this->call('GET', route('admin.users.domains'));
|
$this->call('GET', route('admin.users.domains'));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -38,6 +38,8 @@ class HomeControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$this->call('GET', route('admin.index'));
|
$this->call('GET', route('admin.index'));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -38,6 +38,8 @@ class UserControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$this->call('GET', route('admin.users.edit', [1]));
|
$this->call('GET', route('admin.users.edit', [1]));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -49,6 +51,8 @@ class UserControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$this->call('GET', route('admin.users'));
|
$this->call('GET', route('admin.users'));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -60,6 +64,8 @@ class UserControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$this->call('GET', route('admin.users.edit', [1]));
|
$this->call('GET', route('admin.users.edit', [1]));
|
||||||
$this->assertResponseStatus(200);
|
$this->assertResponseStatus(200);
|
||||||
|
// has bread crumb
|
||||||
|
$this->see('<ol class="breadcrumb">');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user