public function SqlRedirectNotFoundStorageTest::testLongPath in Redirect 8
Tests that long paths aren't stored in the database.
File
- modules/
redirect_404/ tests/ src/ Unit/ SqlRedirectNotFoundStorageTest.php, line 44
Class
- SqlRedirectNotFoundStorageTest
- Tests that overly long paths aren't logged.
Namespace
Drupal\Tests\redirect_404\UnitCode
public function testLongPath() {
$this->database
->expects($this
->never())
->method('merge');
$storage = new SqlRedirectNotFoundStorage($this->database, $this
->getConfigFactoryStub());
$storage
->logRequest($this
->randomMachineName(SqlRedirectNotFoundStorage::MAX_PATH_LENGTH + 1), LanguageInterface::LANGCODE_DEFAULT);
}