Test to see if bread crumb present.

This commit is contained in:
James Cole 2016-12-09 07:08:31 +01:00
parent 052957bbd0
commit ac92939429
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
5 changed files with 25 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class AccountControllerTest extends TestCase
$this->be($this->user());
$this->call('GET', route('accounts.create', ['asset']));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**
@ -44,6 +46,8 @@ class AccountControllerTest extends TestCase
$this->be($this->user());
$this->call('GET', route('accounts.delete', [1]));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**
@ -65,6 +69,8 @@ class AccountControllerTest extends TestCase
$this->be($this->user());
$this->call('GET', route('accounts.edit', [1]));
$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->call('GET', route('accounts.index', ['asset']));
$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->call('GET', route('accounts.show', [1]));
$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->call('GET', route('accounts.show.date', [1, '2016-01-01']));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**

View File

@ -53,6 +53,9 @@ class ConfigurationControllerTest extends TestCase
$this->call('GET', route('admin.configuration.index'));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**

View File

@ -40,6 +40,8 @@ class DomainControllerTest extends TestCase
$this->call('GET', route('admin.users.domains'));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**

View File

@ -38,6 +38,8 @@ class HomeControllerTest extends TestCase
$this->be($this->user());
$this->call('GET', route('admin.index'));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**

View File

@ -38,6 +38,8 @@ class UserControllerTest extends TestCase
$this->be($this->user());
$this->call('GET', route('admin.users.edit', [1]));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**
@ -49,6 +51,8 @@ class UserControllerTest extends TestCase
$this->be($this->user());
$this->call('GET', route('admin.users'));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**
@ -60,6 +64,8 @@ class UserControllerTest extends TestCase
$this->be($this->user());
$this->call('GET', route('admin.users.edit', [1]));
$this->assertResponseStatus(200);
// has bread crumb
$this->see('<ol class="breadcrumb">');
}
/**