Skip to content

Commit

Permalink
docs: replace deprecated assertRegExp (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa authored Jun 8, 2021
1 parent 2f3f454 commit 0c2bc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class BooksTest extends ApiTestCase
'publicationDate' => '1985-07-31T00:00:00+00:00',
'reviews' => [],
]);
$this->assertRegExp('~^/books/\d+$~', $response->toArray()['@id']);
$this->assertMatchesRegularExpression('~^/books/\d+$~', $response->toArray()['@id']);
$this->assertMatchesResourceItemJsonSchema(Book::class);
}

Expand Down

0 comments on commit 0c2bc58

Please sign in to comment.