diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 15:27:18 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 15:27:18 +0100 |
commit | 3a7cf40aaa678bea1df143d2982d603b7a334eec (patch) | |
tree | 63c1e3ad7f7f401d14411a4d44c523632906afc9 /tests/lib/Files/Cache/ScannerTest.php | |
parent | 0568b012672d650c6b5a49e72c4028dde5463c60 (diff) | |
download | nextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.tar.gz nextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.zip |
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Files/Cache/ScannerTest.php')
-rw-r--r-- | tests/lib/Files/Cache/ScannerTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Files/Cache/ScannerTest.php b/tests/lib/Files/Cache/ScannerTest.php index 1c0a8b0e0e9..6a025410cc3 100644 --- a/tests/lib/Files/Cache/ScannerTest.php +++ b/tests/lib/Files/Cache/ScannerTest.php @@ -250,8 +250,8 @@ class ScannerTest extends \Test\TestCase { $this->cache->put('folder', array('mtime' => $this->storage->filemtime('folder'), 'storage_mtime' => $this->storage->filemtime('folder'))); $this->scanner->scan('', \OC\Files\Cache\Scanner::SCAN_SHALLOW, \OC\Files\Cache\Scanner::REUSE_SIZE); $newData = $this->cache->get(''); - $this->assertInternalType('string', $oldData['etag']); - $this->assertInternalType('string', $newData['etag']); + $this->assertIsString($oldData['etag']); + $this->assertIsString($newData['etag']); $this->assertNotSame($oldData['etag'], $newData['etag']); $this->assertEquals($oldData['size'], $newData['size']); @@ -320,11 +320,11 @@ class ScannerTest extends \Test\TestCase { $this->scanner->scan('', \OC\Files\Cache\Scanner::SCAN_SHALLOW, \OC\Files\Cache\Scanner::REUSE_ETAG); /** @var CacheEntry $data0 */ $data0 = $this->cache->get('folder/bar.txt'); - $this->assertInternalType('string', $data0['etag']); + $this->assertIsString($data0['etag']); $data1 = $this->cache->get('folder'); - $this->assertInternalType('string', $data1['etag']); + $this->assertIsString($data1['etag']); $data2 = $this->cache->get(''); - $this->assertInternalType('string', $data2['etag']); + $this->assertIsString($data2['etag']); $data0['etag'] = ''; $this->cache->put('folder/bar.txt', $data0->getData()); @@ -333,7 +333,7 @@ class ScannerTest extends \Test\TestCase { // verify cache content $newData0 = $this->cache->get('folder/bar.txt'); - $this->assertInternalType('string', $newData0['etag']); + $this->assertIsString($newData0['etag']); $this->assertNotEmpty($newData0['etag']); } |