User:Michaeltwofish/Acceptance testing

From Habari Project

Jump to: navigation, search

Acceptance testing, or functional testing, is useful to ensure that software meets the requirements of users. To do this we need to simulate browser behaviour.

Code something like the following should work.

public function test_create_first_post_tags() {

 $this->browser->url_base = 'http://example.com/habari';
 $this->browser->open('/first-post');
 $this->assert_true($this->browser->response->contains('habari'));

}

Personal tools