/** * Testing the loadAllByAttribute method. * * @since 1.0 * @dataProvider getActiveRecordProviders */ public function testLoadAllByAttribute($provider) { $config = ConfigProvider::getInstance(); $config->set('db.provider.name', $provider); $this->person->save(); $people = $this->person->loadAllByAttribute('email', '*****@*****.**'); $this->assertEquals(1, count($people), 'Testing the loadAllByAttribute method'); $this->assertEquals('unitTestUser', $people[0]->getDisplayname()->getValue(), 'Testing the loadAllByAttribute method'); $people[0]->delete(); }