public function SqlRedirectNotFoundStorageTest::testPurgeOldRequests in Redirect 8
Tests that all logs are kept if row limit config is "All".
File
- modules/
redirect_404/ tests/ src/ Unit/ SqlRedirectNotFoundStorageTest.php, line 64
Class
- SqlRedirectNotFoundStorageTest
- Tests that overly long paths aren't logged.
Namespace
Drupal\Tests\redirect_404\UnitCode
public function testPurgeOldRequests() {
$this->configFactory = $this
->getConfigFactoryStub([
'redirect_404.settings' => [
'row_limit' => 0,
],
]);
$storage = new SqlRedirectNotFoundStorage($this->database, $this->configFactory);
$storage
->purgeOldRequests();
$this->database
->expects($this
->never())
->method('select');
}