Skip to content

Commit cd743c1

Browse files
committed
Update logic to str_contains
1 parent 98e1fc4 commit cd743c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/functional/viewonline_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function test_viewonline_check_viewonline()
5252
{
5353
// If we found the admin, we check his page info and leave
5454
$subcrawler = $crawler->filter('#page-body table.table1 tr')->eq($i);
55-
if (strpos($subcrawler->filter('td')->text(), 'admin') !== false)
55+
if (str_contains($subcrawler->filter('td')->text(), 'admin'))
5656
{
5757
try
5858
{

0 commit comments

Comments
 (0)