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.
1 parent bc4ae52 commit 7d2468bCopy full SHA for 7d2468b
phpunit.xml
@@ -27,5 +27,9 @@
27
<directory>tests/QueryBuilderTest.php</directory>
28
<directory>tests/QueryTest.php</directory>
29
</testsuite>
30
+ <testsuite name="model">
31
+ <directory>tests/ModelTest.php</directory>
32
+ <directory>tests/RelationsTest.php</directory>
33
+ </testsuite>
34
</testsuites>
35
</phpunit>
tests/ModelTest.php
@@ -63,6 +63,11 @@ public function testUpdate()
63
64
$this->assertEquals('John Doe', $check->name);
65
$this->assertEquals(36, $check->age);
66
+
67
+ $user->update(array('age' => 20));
68
69
+ $check = User::find($user->_id);
70
+ $this->assertEquals(20, $check->age);
71
}
72
73
public function testDelete()
0 commit comments