Browse Source

transform 1 response from preg_match to a boolean

d9_islandora
ezoller 4 years ago
parent
commit
788b57047a
  1. 4
      tests/src/Functional/EmitNodeEventTest.php

4
tests/src/Functional/EmitNodeEventTest.php

@ -102,8 +102,8 @@ class EmitNodeEventTest extends IslandoraFunctionalTestBase {
"Authorization header must be set"
);
$matches = [];
$this->assertTrue(
preg_match('/^Bearer (.*)/', $headers['Authorization'], $matches),
$this->assertTrue((boolean)
preg_match('/^Bearer(\s*.*)/', $headers['Authorization'], $matches),
"Authorization header must be a bearer token"
);
$this->assertTrue(

Loading…
Cancel
Save