Skip to content

Commit d12f060

Browse files
committed
Updated bookstore tests to avoid violation of strict php standards
1 parent 0f3e78a commit d12f060

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tests/Propel/Tests/BookstoreTest.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,10 @@ public function testScenarioUsingQuery()
694694
->_or()
695695
->filterBySecondAuthor($grass);
696696

697+
$params = [];
697698
$this->assertEquals(
698699
'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)
700701
);
701702

702703
$expected = EssayQuery::create()
@@ -717,9 +718,10 @@ public function testScenarioUsingQuery()
717718
->filterById($e2->getId())
718719
->endUse();
719720

721+
$params = [];
720722
$this->assertEquals(
721723
'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)
723725
);
724726

725727
$expected = AuthorQuery::create()
@@ -744,9 +746,10 @@ public function testScenarioUsingQuery()
744746
->filterById($e2->getId())
745747
->endUse();
746748

749+
$params = [];
747750
$this->assertEquals(
748751
'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)
750753
);
751754

752755
$exception = null;
@@ -777,9 +780,10 @@ public function testScenarioUsingQuery()
777780
->filterById($e2->getId())
778781
->endUse();
779782

783+
$params = [];
780784
$this->assertEquals(
781785
'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)
783787
);
784788

785789
$expected = AuthorQuery::create()
@@ -810,9 +814,10 @@ public function testScenarioUsingQuery()
810814
->filterById($e2->getId())
811815
->endUse();
812816

817+
$params = [];
813818
$this->assertEquals(
814819
'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)
816821
);
817822

818823
$expected = AuthorQuery::create()
@@ -837,9 +842,10 @@ public function testScenarioUsingQuery()
837842
->filterById($e2->getId())
838843
->endUse();
839844

845+
$params = [];
840846
$this->assertEquals(
841847
'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)',
842-
$authorsQuery->createSelectSql($params = [])
848+
$authorsQuery->createSelectSql($params)
843849
);
844850

845851
$expected = AuthorQuery::create()

0 commit comments

Comments
 (0)