public function CacheFlushUICRUD::filterTest in CacheFlush 7.3
Tests for List interface filters.
1 call to CacheFlushUICRUD::filterTest()
- CacheFlushUICRUD::testAdminPage in modules/
cacheflush_ui/ cacheflush_ui.test - Tests List page.
File
- modules/
cacheflush_ui/ cacheflush_ui.test, line 146 - Contains test suite for cacheflush ui module.
Class
- CacheFlushUICRUD
- Test the UI CRUD.
Code
public function filterTest() {
$this
->assertRaw('Test-Entity-Enabled');
$this
->assertRaw('Test-Entity-Disabled');
$this
->drupalPost(NULL, array(
'status' => 1,
'menu' => 0,
), t('Filter'));
$this
->assertRaw('Test-Entity-Enabled');
$this
->assertNoRaw('Test-Entity-Disabled');
$this
->drupalPost(NULL, array(
'status' => 0,
'menu' => 1,
), t('Filter'));
$this
->assertNoRaw('Test-Entity-Enabled');
$this
->assertRaw('Test-Entity-Disabled');
$this
->drupalPost(NULL, array(
'status' => 1,
'menu' => 1,
), t('Filter'));
$this
->assertNoRaw('Test-Entity-Enabled');
$this
->assertNoRaw('Test-Entity-Disabled');
$this
->drupalPost(NULL, array(
'status' => 0,
'menu' => 0,
), t('Filter'));
$this
->assertNoRaw('Test-Entity-Enabled');
$this
->assertNoRaw('Test-Entity-Disabled');
}