Skip to content
Permalink
Browse files

Increase coverage in Content class tests

  • Loading branch information...
bastianallgeier committed Jun 20, 2019
1 parent 7431797 commit 3232736aad57c5039afb89f4546772272cbc0c49
Showing with 17 additions and 0 deletions.
  1. +17 −0 tests/Cms/Content/ContentTest.php
@@ -118,6 +118,23 @@ public function testMultipleNot()
$this->assertEquals(null, $content->get('text')->value());
}
public function testParent()
{
$page = new Page(['slug' => 'test']);
$content = new Content(['title' => 'Test'], $page);
$this->assertEquals($page, $content->parent());
}
public function testSetParent()
{
$page = new Page(['slug' => 'test']);
$content = new Content(['title' => 'Test']);
$content->setParent($page);
$this->assertEquals($page, $content->parent());
}
public function testToArray()
{
return $this->assertEquals($this->mockData(), $this->mockObject()->toArray());

0 comments on commit 3232736

Please sign in to comment.
You can’t perform that action at this time.