mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use assertNotSame when checking etags
Sometimes etags contain a "e" character which makes PHP believe it's a number and make the tests fail
This commit is contained in:
parent
4cef7f9d4b
commit
67413e3ada
1 changed files with 3 additions and 3 deletions
6
tests/lib/files/cache/changepropagator.php
vendored
6
tests/lib/files/cache/changepropagator.php
vendored
|
|
@ -65,8 +65,8 @@ class ChangePropagator extends \PHPUnit_Framework_TestCase {
|
|||
$this->assertEquals($newInfo2->getMTime(), $time);
|
||||
$this->assertEquals($newInfo3->getMTime(), $time);
|
||||
|
||||
$this->assertNotEquals($oldInfo1->getEtag(), $newInfo1->getEtag());
|
||||
$this->assertNotEquals($oldInfo2->getEtag(), $newInfo2->getEtag());
|
||||
$this->assertNotEquals($oldInfo3->getEtag(), $newInfo3->getEtag());
|
||||
$this->assertNotSame($oldInfo1->getEtag(), $newInfo1->getEtag());
|
||||
$this->assertNotSame($oldInfo2->getEtag(), $newInfo2->getEtag());
|
||||
$this->assertNotSame($oldInfo3->getEtag(), $newInfo3->getEtag());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue