diff --git a/src/Codeception/Lib/InnerBrowser.php b/src/Codeception/Lib/InnerBrowser.php index 1dbf401..fbc9f7e 100644 --- a/src/Codeception/Lib/InnerBrowser.php +++ b/src/Codeception/Lib/InnerBrowser.php @@ -753,7 +753,7 @@ protected function proceedSeeInField(Crawler $fields, $value) } return [ 'Contains', - $value, + (string)$value, $testValues, sprintf( 'Failed asserting that `%s` is in %s\'s value: %s', diff --git a/tests/unit/Codeception/Module/TestsForWeb.php b/tests/unit/Codeception/Module/TestsForWeb.php index e399e41..44e76db 100644 --- a/tests/unit/Codeception/Module/TestsForWeb.php +++ b/tests/unit/Codeception/Module/TestsForWeb.php @@ -11,7 +11,7 @@ abstract class TestsForWeb extends \Codeception\Test\Unit { /** - * @var \Codeception\Module\PhpBrowser + * @var \Codeception\Module\UniversalFramework */ protected $module; @@ -1416,7 +1416,7 @@ public function testCheckingOptionsWithComplexNames() $this->module->checkOption('#bmessage-topicslinks input[value="4"]'); $this->module->click('Submit'); $data = data::get('form'); - $this->assertContains(4, $data['BMessage']['topicsLinks']); + $this->assertContains('4', $data['BMessage']['topicsLinks']); } /**