public function VarbaseBlogTest::testCheckVarbaseBlogContentType in Varbase Blog (Corporate Blog) 9.0.x
Check Varbase Blog content type.
File
- tests/
src/ FunctionalJavascript/ VarbaseBlogTest.php, line 64
Class
- VarbaseBlogTest
- Tests Varbase Blog.
Namespace
Drupal\Tests\varbase_blog\FunctionalJavascriptCode
public function testCheckVarbaseBlogContentType() {
// Given that the root super user was logged in to the site.
$this
->drupalLogin($this->rootUser);
// Navigate to Content Types.
$this
->drupalGet('admin/structure/types');
$content_types_text = $this
->t('Content types');
$this
->assertSession()
->pageTextContains($content_types_text);
$blog_post_text = $this
->t('Blog post');
$this
->assertSession()
->pageTextContains($blog_post_text);
$blog_post_description_text = $this
->t('Use Blog to publish blog post by different authors in the Blog section of the site.');
$this
->assertSession()
->pageTextContains($blog_post_description_text);
// Navigate to Add Content.
$this
->drupalGet('node/add');
$add_content_text = $this
->t('Add content');
$this
->assertSession()
->pageTextContains($add_content_text);
$this
->assertSession()
->linkExists($blog_post_text);
$this
->assertSession()
->pageTextContains($blog_post_description_text);
}