paragraphs_pack_content.test in Paragraphs pack 7
File
modules/paragraphs_pack_content/tests/paragraphs_pack_content.test
View source
<?php
module_load_include('inc', 'paragraphs_pack', 'tests/paragraphs_pack.test_helper');
class ParagraphsPackContentTestCase extends ParagraphsPackWebTestCase {
public static function getInfo() {
return array(
'name' => 'Paragraphs pack content tests',
'description' => 'Tests: Paragraphs pack content installation.',
'group' => 'Paragraphs pack',
);
}
public function setUp() {
parent::setUp('paragraphs_pack_content');
}
public function testParagraphsPackContentBundle() {
$this
->check_bundle_existence(PP_BUNDLE_CONTENT);
}
public function testParagraphsPackContentFieldsExistence() {
$this
->check_field_existence(PP_FIELD_TITLE, PP_BUNDLE_CONTENT);
$this
->check_field_existence(PP_FIELD_BODY, PP_BUNDLE_CONTENT);
}
}