Skip to content

Commit 2bf491b

Browse files
committed
wip
1 parent 1f3bcfb commit 2bf491b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/Browser/PluginSettingsTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
namespace Tests\Browser;
4+
5+
const DEFAULT_SA_NOTICE = '<!-- Simple Analytics: Not logging requests from admins -->';
6+
37
test('Sign in', function () {
48
$page = visit('http://127.0.0.1:8100/wp-admin');
59

@@ -9,5 +13,5 @@
913
$page->assertSee('Welcome to WordPress!');
1014

1115
$page2 = visit('http://127.0.0.1:8100')->screenshot();
12-
expect($page2->content())->toContain('<!-- Simple Analytics: Not logging requests from admins -->');
16+
expect($page2->content())->not->toContain(DEFAULT_SA_NOTICE);
1317
});

tests/Pest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace Tests;
4+
35
/*
46
|--------------------------------------------------------------------------
57
| Test Case
@@ -11,7 +13,7 @@
1113
|
1214
*/
1315

14-
pest()->extend(Tests\TestCase::class)->in('Feature');
16+
pest()->extend(TestCase::class)->in('Feature');
1517

1618
/*
1719
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)