We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
testMultiplyIsLazy
multiply
1 parent 466987f commit afd85aaCopy full SHA for afd85aa
tests/Support/SupportLazyCollectionIsLazyTest.php
@@ -137,6 +137,20 @@ public function testConcatIsLazy()
137
$this->assertEnumerations(1, $secondEnumerations);
138
}
139
140
+ public function testMultiplyIsLazy()
141
+ {
142
+ $this->assertDoesNotEnumerate(function ($collection) {
143
+ $collection->multiply(2);
144
+ });
145
+
146
+ $this->assertEnumeratesCollectionOnce(
147
+ $this->make([1, 2, 3]),
148
+ function ($collection) {
149
+ return $collection->multiply(3)->all();
150
+ }
151
+ );
152
153
154
public function testContainsIsLazy()
155
{
156
$this->assertEnumerates(5, function ($collection) {
0 commit comments