Skip to content
Snippets Groups Projects
Unverified Commit 1c4ca640 authored by Andrew Berry's avatar Andrew Berry
Browse files

Issue #2976345 by deviantintegral: Support tests on PHPUnit 4

parent 99031e57
No related branches found
No related tags found
No related merge requests found
......@@ -109,13 +109,14 @@ class DrupalGuzzleCacheTest extends UnitTestCase {
* Tests setting an invalid prefix.
*
* @covers ::setPrefix
*
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The cache key prefix cannot be longer than 191 characters.
*/
public function testInvalidPrefix() {
/** @var \Drupal\Core\Cache\CacheBackendInterface $backend */
$backend = $this->createMock(CacheBackendInterface::class);
$prefix = $this->getRandomGenerator()->name(192);
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('The cache key prefix cannot be longer than 191 characters.');
new DrupalGuzzleCache($backend, $prefix);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment