@@ -13,7 +13,7 @@ class QueryTest extends TestCase
1313 public function testQueryStaticFactoryMethods (): void
1414 {
1515 // Test equal
16- $ query = Query::equal ('userId ' , '123 ' );
16+ $ query = Query::equal ('userId ' , [ '123 ' ] );
1717 $ this ->assertEquals (Query::TYPE_EQUAL , $ query ->getMethod ());
1818 $ this ->assertEquals ('userId ' , $ query ->getAttribute ());
1919 $ this ->assertEquals (['123 ' ], $ query ->getValues ());
@@ -80,7 +80,7 @@ public function testQueryParseAndToString(): void
8080 $ this ->assertEquals (['123 ' ], $ query ->getValues ());
8181
8282 // Test toString
83- $ query = Query::equal ('event ' , 'create ' );
83+ $ query = Query::equal ('event ' , [ 'create ' ] );
8484 $ json = $ query ->toString ();
8585 $ this ->assertJson ($ json );
8686
@@ -127,7 +127,7 @@ public function testQueryParseQueries(): void
127127 */
128128 public function testGetValue (): void
129129 {
130- $ query = Query::equal ('userId ' , '123 ' );
130+ $ query = Query::equal ('userId ' , [ '123 ' ] );
131131 $ this ->assertEquals ('123 ' , $ query ->getValue ());
132132
133133 $ query = Query::limit (10 );
0 commit comments