Skip to content

Commit

Permalink
#316 - added the ViewTest::editView() test case
Browse files Browse the repository at this point in the history
  • Loading branch information
alphadevx committed Dec 10, 2017
1 parent c452102 commit b388ea6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/Alpha/Test/View/ViewTest.php
Expand Up @@ -264,4 +264,19 @@ public function testRenderAllFields()
$this->assertNotEmpty($this->view->renderAllFields('view'), 'Testing the renderAllFields() method');
$this->assertTrue(strpos($this->view->renderAllFields('view'), 'Test Article') !== false, 'Testing the renderAllFields() method');
}

/**
* Testing the editView() method.
*
* @since 3.0
*/
public function testEditView()
{
$article = new Article();
$article->set('title', 'Test Article');
$this->view = View::getInstance($article);

$this->assertNotEmpty($this->view->editView(), 'Testing the editView() method');
$this->assertTrue(strpos($this->view->editView(), 'Test Article') !== false, 'Testing the editView() method');
}
}

0 comments on commit b388ea6

Please sign in to comment.