private function PatternsBlockTestCase::testDelete in Patterns 7.2
Same name and namespace in other branches
- 7 tests/block/block.test \PatternsBlockTestCase::testDelete()
1 call to PatternsBlockTestCase::testDelete()
- PatternsBlockTestCase::testCreateModifyDelete in tests/block/block.test
File
- tests/block/block.test, line 88
- SimpleTests for the Block component of Patterns.
Class
- PatternsBlockTestCase
- @file
SimpleTests for the Block component of Patterns.
Code
private function testDelete() {
parent::runFile('block_delete.yaml', 'Blocks (custom) delete', $this->block_tests_dir);
$this
->assertText('Removed all the configuration for custom block delta');
$block_count = db_select('block', 'b')
->fields('b', array(
'bid',
))
->condition('module', 'block')
->condition('title', 'Test title')
->countQuery()
->execute()
->fetchField();
$this
->assertIdentical($block_count, '0', t('The custom block should not exist at this point.'));
}