Skip to content

Commit c95b913

Browse files
committed
improve tests
1 parent 822a7c6 commit c95b913

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ConditionSqlTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function testDateCondition2()
338338
$m->addField('date', ['type' => 'date']);
339339

340340
$m->addCondition('date', new \DateTime('08-12-1982'));
341-
$m->loadAny();
341+
$m->loadOne();
342342
$this->assertSame('Sue', $m->get('name'));
343343
}
344344

tests/DeepCopyTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testBasic()
162162
['name' => 'tools', 'qty' => 5, 'price' => 10],
163163
['name' => 'work', 'qty' => 1, 'price' => 40],
164164
]]);
165-
$quote->loadAny();
165+
$quote->loadOne();
166166

167167
// total price should match
168168
$this->assertEquals(90.00, $quote->get('total'));

0 commit comments

Comments
 (0)