public function testUseDatabase() { $this->module->useDatabase('example'); $this->module->haveInCollection('stuff', array('name' => 'Ashley', 'email' => '*****@*****.**')); $this->module->seeInCollection('stuff', array('name' => 'Ashley', 'email' => '*****@*****.**')); $this->module->dontSeeInCollection('users', array('email' => '*****@*****.**')); }
public function testHaveAndSeeInCollection() { $this->module->haveInCollection('users', array('name' => 'John', 'email' => '*****@*****.**')); $this->module->seeInCollection('users', array('name' => 'John', 'email' => '*****@*****.**')); }