protected function ScannerBaseTestCase::removeSampleContent in Search and Replace Scanner 7
Remove all content for a specific content type.
Parameters
string $content_type: The content type to generate; defaults to 'article'.
1 call to ScannerBaseTestCase::removeSampleContent()
- ScannerWithLinkTestCase::setUp in tests/
ScannerWithLinkTestCase.test - Sets up a Drupal site for running functional and integration tests.
File
- tests/
ScannerBaseTestCase.test, line 148 - Base test class to make other tests simpler.
Class
- ScannerBaseTestCase
- Base test class to make other tests simpler.
Code
protected function removeSampleContent($content_type = 'article') {
module_load_include('inc', 'devel_generate');
devel_generate_content_kill(array(
'node_types' => array(
'article',
),
));
}