Convert all DB where() calls to take 3 arguments.

Convert all open_paren() calls to and_open() or or_open() as appropriate.
This commit is contained in:
Bharat Mediratta
2009-11-26 12:09:04 -08:00
parent 22823df220
commit 1fd0e14359
51 changed files with 208 additions and 203 deletions
+2 -2
View File
@@ -29,12 +29,12 @@ class Comment_Model_Test extends Unit_Test_Case {
access::allow(identity::everybody(), "view", $album);
$this->assert_equal(
1,
ORM::factory("comment")->viewable()->where("comments.id", $comment->id)->count_all());
ORM::factory("comment")->viewable()->where("comments.id", "=", $comment->id)->count_all());
// We can't see the comment when permissions are denied on the album
access::deny(identity::everybody(), "view", $album);
$this->assert_equal(
0,
ORM::factory("comment")->viewable()->where("comments.id", $comment->id)->count_all());
ORM::factory("comment")->viewable()->where("comments.id", "=", $comment->id)->count_all());
}
}