+ /**
+ * Tests that all logs are kept if row limit config is "All".
+ */
+ 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');
+ }
+