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/Unit/DataLoaderAbuseTest.php
+33-5Lines changed: 33 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,7 @@ public function load_many_requires_actual_keys()
58
58
/**
59
59
* @test
60
60
* @expectedException \RuntimeException
61
-
* @expectedExceptionMessage leinonen\DataLoader\DataLoader must be constructed with a function which accepts
62
-
* an array of keys and returns a Promise which resolves to an array of values not return a Promise: null.
61
+
* @expectedExceptionMessage leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys and returns a Promise which resolves to an array of values not return a Promise: NULL.
@@ -73,14 +72,43 @@ public function batch_function_must_return_a_promise_not_null()
73
72
/**
74
73
* @test
75
74
* @expectedException \RuntimeException
76
-
* @expectedExceptionMessage leinonen\DataLoader\DataLoader must be constructed with a function which accepts
77
-
* an array of keys and returns a Promise which resolves to an array of values not return a Promise: 1.
75
+
* @expectedExceptionMessage leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys and returns a Promise which resolves to an array of values not return a Promise: array.
* @expectedExceptionMessage leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys and returns a Promise which resolves to an array of values not return a Promise: integer.
* @expectedExceptionMessage leinonen\DataLoader\DataLoader must be constructed with a function which accepts an array of keys and returns a Promise which resolves to an array of values not return a Promise: object.
0 commit comments