diff options
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']); } |