File tree Expand file tree Collapse file tree
user_guide_src/source/testing/response Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
3- // Checks that "Hello World" does NOT exist on the page
4- $ results ->dontSee ('Hello World ' );
5- // Checks that "Hello World" does NOT exist within any h1 tag
6- $ results ->dontSee ('Hello World ' , 'h1 ' );
3+ // Verify that "Hello World" does NOT exist on the page
4+ $ results ->assertDontSee ('Hello World ' );
5+
6+ // Verify that "Hello World" does NOT exist within any h1 tag
7+ $ results ->assertDontSee ('Hello World ' , 'h1 ' );
Original file line number Diff line number Diff line change 11<?php
22
3- // Check that an element with class 'notice' exists
4- $ results ->seeElement ('.notice ' );
5- // Check that an element with id 'title' exists
6- $ results ->seeElement ('#title ' );
3+ // Verify that an element with class 'notice' exists
4+ $ results ->assertSeeElement ('.notice ' );
5+
6+ // Verify that an element with id 'title' exists
7+ $ results ->assertSeeElement ('#title ' );
Original file line number Diff line number Diff line change 11<?php
22
33// Verify that an element with id 'title' does NOT exist
4- $ results ->dontSeeElement ('#title ' );
4+ $ results ->assertDontSeeElement ('#title ' );
Original file line number Diff line number Diff line change 11<?php
22
3- // Check that a link exists with 'Upgrade Account' as the text::
4- $ results ->seeLink ('Upgrade Account ' );
5- // Check that a link exists with 'Upgrade Account' as the text, AND a class of 'upsell'
6- $ results ->seeLink ('Upgrade Account ' , '.upsell ' );
3+ // Verify that a link exists with 'Upgrade Account' as the text::
4+ $ results ->assertSeeLink ('Upgrade Account ' );
5+
6+ // Verify that a link exists with 'Upgrade Account' as the text, AND a class of 'upsell'
7+ $ results ->assertSeeLink ('Upgrade Account ' , '.upsell ' );
You can’t perform that action at this time.
0 commit comments