aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2015-06-26 22:03:25 +0200
committernodiscc <nodiscc@gmail.com>2015-06-26 22:03:25 +0200
commitd72ae3d7e879281b842a6c56e1fe97ed9671c654 (patch)
tree4668dd6fe7025c7acd64ce16dd6ec420d53c5443 /tests
parent2fbadc3c631e0c7e32b9b956fb5551822729bc33 (diff)
parent30e6f1ca2f4278f542cde625f8152c7be3551ed4 (diff)
downloadShaarli-d72ae3d7e879281b842a6c56e1fe97ed9671c654.tar.gz
Shaarli-d72ae3d7e879281b842a6c56e1fe97ed9671c654.tar.zst
Shaarli-d72ae3d7e879281b842a6c56e1fe97ed9671c654.zip
Merge remote-tracking branch 'ArthurHoaro/default-links'
Diffstat (limited to 'tests')
-rw-r--r--tests/LinkDBTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php
index 0d343359..a54fc501 100644
--- a/tests/LinkDBTest.php
+++ b/tests/LinkDBTest.php
@@ -15,7 +15,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
15{ 15{
16 // datastore to test write operations 16 // datastore to test write operations
17 protected static $testDatastore = 'tests/datastore.php'; 17 protected static $testDatastore = 'tests/datastore.php';
18 protected static $dummyDatastoreSHA1 = 'e3edea8ea7bb50be4bcb404df53fbb4546a7156e'; 18 protected static $dummyDatastoreFilesize = 759;
19 protected static $refDB = null; 19 protected static $refDB = null;
20 protected static $publicLinkDB = null; 20 protected static $publicLinkDB = null;
21 protected static $privateLinkDB = null; 21 protected static $privateLinkDB = null;
@@ -110,8 +110,8 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
110 110
111 // ensure the correct data has been written 111 // ensure the correct data has been written
112 $this->assertEquals( 112 $this->assertEquals(
113 self::$dummyDatastoreSHA1, 113 self::$dummyDatastoreFilesize,
114 sha1_file(self::$testDatastore) 114 filesize(self::$testDatastore)
115 ); 115 );
116 } 116 }
117 117
@@ -122,8 +122,8 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
122 { 122 {
123 $linkDB = new LinkDB(self::$testDatastore, false, false); 123 $linkDB = new LinkDB(self::$testDatastore, false, false);
124 $this->assertEquals( 124 $this->assertEquals(
125 self::$dummyDatastoreSHA1, 125 self::$dummyDatastoreFilesize,
126 sha1_file(self::$testDatastore) 126 filesize(self::$testDatastore)
127 ); 127 );
128 128
129 $checkDB = self::getMethod('checkDB'); 129 $checkDB = self::getMethod('checkDB');
@@ -131,8 +131,8 @@ class LinkDBTest extends PHPUnit_Framework_TestCase
131 131
132 // ensure the datastore is left unmodified 132 // ensure the datastore is left unmodified
133 $this->assertEquals( 133 $this->assertEquals(
134 self::$dummyDatastoreSHA1, 134 self::$dummyDatastoreFilesize,
135 sha1_file(self::$testDatastore) 135 filesize(self::$testDatastore)
136 ); 136 );
137 } 137 }
138 138