Skip to content

Commit

Permalink
added acceptance tests for page entity for api module
Browse files Browse the repository at this point in the history
  • Loading branch information
djavolak committed Sep 11, 2016
1 parent 93c9b98 commit 8371e6b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/tests/acceptance/ApiCept.php
@@ -0,0 +1,14 @@
<?php
$I = new AcceptanceTester($scenario);

$I->wantTo('Get response from api');
$I->amOnPage('/api');
$I->seeInSource('Welcome to api for yona-cms!');

$I->wantTo('Get page list from api');
$I->amOnPage('/api/page/list');
$I->seeInSource('"title":"Homepage"');

$I->wantTo('Get single page info from api');
$I->amOnPage('/api/page/get?pageId=1');
$I->seeInSource('metaDescription":"meta-description of homepage",');

0 comments on commit 8371e6b

Please sign in to comment.