diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-11-04 12:09:54 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-11-04 12:09:54 +0100 |
commit | 7c67d2fdd61eb7e3cb3cf769613d3e7b644f7cbc (patch) | |
tree | e408d439c5e87c5b74f060ebedd6a38b855f68b4 /tests | |
parent | 4648dcfa466ca366ea50178e6b3ab9d7e7568ba6 (diff) | |
download | nextcloud-server-7c67d2fdd61eb7e3cb3cf769613d3e7b644f7cbc.tar.gz nextcloud-server-7c67d2fdd61eb7e3cb3cf769613d3e7b644f7cbc.zip |
VCategories: Swap expected and actual in unit tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/db.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/db.php b/tests/lib/db.php index ead4b19b38e..e73b30e2138 100644 --- a/tests/lib/db.php +++ b/tests/lib/db.php @@ -108,8 +108,8 @@ class Test_DB extends UnitTestCase { $this->assertTrue($result); $row = $result->fetchRow(); $this->assertArrayHasKey('carddata', $row); - $this->assertEqual($row['carddata'], $carddata); - $this->assertEqual($result->numRows(), '1'); + $this->assertEqual($carddata, $row['carddata']); + $this->assertEqual('1', $result->numRows()); // Try to insert a new row $result = OC_DB::insertIfNotExist('*PREFIX*'.$this->table2, @@ -125,9 +125,9 @@ class Test_DB extends UnitTestCase { $row = $result->fetchRow(); $this->assertArrayHasKey('carddata', $row); // Test that previously inserted data isn't overwritten - $this->assertEqual($row['carddata'], $carddata); + $this->assertEqual($carddata, $row['carddata']); // And that a new row hasn't been inserted. - $this->assertEqual($result->numRows(), '1'); + $this->assertEqual('1', $result->numRows()); } } |