示例#1
0
 /**
  * Testing the loadAllFieldValuesByAttribute method.
  *
  * @since 1.0
  * @dataProvider getActiveRecordProviders
  */
 public function testLoadAllFieldValuesByAttribute($provider)
 {
     $config = ConfigProvider::getInstance();
     $config->set('db.provider.name', $provider);
     $this->person->save();
     $emails = $this->person->loadAllFieldValuesByAttribute('email', $this->person->get('email'), 'email');
     $this->assertEquals($this->person->get('email'), $emails[0], 'Testing the loadAllFieldValuesByAttribute method');
 }