Skip to content

Commit 054fa72

Browse files
committed
docs: fix incorrect sample code
1 parent 4cf3fe4 commit 054fa72

4 files changed

Lines changed: 16 additions & 13 deletions

File tree

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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');
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22

33
// Verify that an element with id 'title' does NOT exist
4-
$results->dontSeeElement('#title');
4+
$results->assertDontSeeElement('#title');
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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');

0 commit comments

Comments
 (0)