You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Propel/Tests/BookstoreTest.php
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -694,9 +694,10 @@ public function testScenarioUsingQuery()
694
694
->_or()
695
695
->filterBySecondAuthor($grass);
696
696
697
+
$params = [];
697
698
$this->assertEquals(
698
699
'SELECT FROM essay LEFT JOIN author first_author ON (essay.first_author_id=first_author.id) LEFT JOIN author second_author ON (essay.second_author_id=second_author.id) WHERE (essay.first_author_id=:p1 OR essay.second_author_id=:p2)',
699
-
$essaysQuery->createSelectSql($params = [])
700
+
$essaysQuery->createSelectSql($params)
700
701
);
701
702
702
703
$expected = EssayQuery::create()
@@ -717,9 +718,10 @@ public function testScenarioUsingQuery()
717
718
->filterById($e2->getId())
718
719
->endUse();
719
720
721
+
$params = [];
720
722
$this->assertEquals(
721
723
'SELECT FROM author LEFT JOIN essay essay_related_by_first_author ON (author.id=essay_related_by_first_author.first_author_id) WHERE essay_related_by_first_author.id=:p1',
722
-
$authorsQuery->createSelectSql($params = [])
724
+
$authorsQuery->createSelectSql($params)
723
725
);
724
726
725
727
$expected = AuthorQuery::create()
@@ -744,9 +746,10 @@ public function testScenarioUsingQuery()
744
746
->filterById($e2->getId())
745
747
->endUse();
746
748
749
+
$params = [];
747
750
$this->assertEquals(
748
751
'SELECT FROM author LEFT JOIN essay ON (author.id=essay.first_author_id) INNER JOIN essay ON (author.id=essay.second_author_id) WHERE (essay.id=:p1 OR essay.id=:p2)',
749
-
$authorsQuery->createSelectSql($params = [])
752
+
$authorsQuery->createSelectSql($params)
750
753
);
751
754
752
755
$exception = null;
@@ -777,9 +780,10 @@ public function testScenarioUsingQuery()
777
780
->filterById($e2->getId())
778
781
->endUse();
779
782
783
+
$params = [];
780
784
$this->assertEquals(
781
785
'SELECT FROM author CROSS JOIN essay LEFT JOIN essay EssayRelatedByFirstAuthorId ON (author.id=EssayRelatedByFirstAuthorId.first_author_id) INNER JOIN essay EssayRelatedBySecondAuthorId ON (author.id=EssayRelatedBySecondAuthorId.second_author_id) WHERE (essay.id=:p1 OR essay.id=:p2)',
782
-
$authorsQuery->createSelectSql($params = [])
786
+
$authorsQuery->createSelectSql($params)
783
787
);
784
788
785
789
$expected = AuthorQuery::create()
@@ -810,9 +814,10 @@ public function testScenarioUsingQuery()
810
814
->filterById($e2->getId())
811
815
->endUse();
812
816
817
+
$params = [];
813
818
$this->assertEquals(
814
819
'SELECT FROM author LEFT JOIN essay essay_related_by_first_author ON (author.id=essay_related_by_first_author.first_author_id) INNER JOIN essay essay_related_by_second_author ON (author.id=essay_related_by_second_author.second_author_id) WHERE (essay_related_by_first_author.id=:p1 OR essay_related_by_second_author.id=:p2)',
815
-
$authorsQuery->createSelectSql($params = [])
820
+
$authorsQuery->createSelectSql($params)
816
821
);
817
822
818
823
$expected = AuthorQuery::create()
@@ -837,9 +842,10 @@ public function testScenarioUsingQuery()
837
842
->filterById($e2->getId())
838
843
->endUse();
839
844
845
+
$params = [];
840
846
$this->assertEquals(
841
847
'SELECT FROM author LEFT JOIN essay essay_related_by_first_author ON (author.id=essay_related_by_first_author.first_author_id) LEFT JOIN essay essay_related_by_second_author ON (author.id=essay_related_by_second_author.second_author_id) WHERE (essay_related_by_first_author.id=:p1 OR essay_related_by_second_author.id=:p2)',
0 commit comments