forked from wallabag/wallabag
Fix deprecated method in tests
This commit is contained in:
@ -90,7 +90,7 @@ class ReadabilityImportTest extends TestCase
|
||||
->expects($this->any())
|
||||
->method('persist')
|
||||
->with($this->callback(function ($persistedEntry) {
|
||||
return $persistedEntry->isArchived();
|
||||
return (bool) $persistedEntry->isArchived();
|
||||
}));
|
||||
|
||||
$res = $readabilityImport->setMarkAsRead(true)->import();
|
||||
@ -190,7 +190,7 @@ class ReadabilityImportTest extends TestCase
|
||||
$this->assertFalse($res);
|
||||
|
||||
$records = $this->logHandler->getRecords();
|
||||
$this->assertContains('ReadabilityImport: unable to read file', $records[0]['message']);
|
||||
$this->assertStringContainsString('ReadabilityImport: unable to read file', $records[0]['message']);
|
||||
$this->assertSame('ERROR', $records[0]['level_name']);
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ class ReadabilityImportTest extends TestCase
|
||||
$this->assertFalse($res);
|
||||
|
||||
$records = $this->logHandler->getRecords();
|
||||
$this->assertContains('ReadabilityImport: user is not defined', $records[0]['message']);
|
||||
$this->assertStringContainsString('ReadabilityImport: user is not defined', $records[0]['message']);
|
||||
$this->assertSame('ERROR', $records[0]['level_name']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user