Extending specifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$I = new WebGuy(); | |
$I->am('regular site user'); // As a regular user | |
$I->wantTo('create my blog page'); // I want to create my blog page | |
$I->lookForwardTo('get a cool blog here'); // So that I gain a cool blog | |
$I->createBlog('my first blog'); | |
$I->see('My first blog', 'h1'); | |
$I->seeInCurrentUrl('blog/my-first-blog'); | |
$I->expect("blog can't be created twice"); | |
$I->createBlog('my first blog'); | |
$I->dontSee('My first blog', 'h1'); | |
$I->see('Sorry, blog already exists'); | |
$I->expect("blog has RSS feed"); | |
// TODO: implement this | |
$I->expect("am administrator of this blog"); | |
// TODO: implement this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment