Ejemplo n.º 1
0
 /**
  * @covers ::setOriginals
  * @covers ::getOriginals
  * @covers ::getOriginal
  */
 public function testOriginals()
 {
     $object = new City();
     $originals = $object->getOriginals();
     $original = $object->getOriginal('name');
     $this->assertEquals(['id' => null, 'name' => null, 'countryId' => null], $originals);
     $expected = ['id' => 10, 'name' => 'test', 'countryId' => 1];
     $object->setOriginals($expected);
     $originals = $object->getOriginals();
     $original = $object->getOriginal('name');
     $this->assertEquals($expected, $originals);
     $this->assertEquals($expected['name'], $original);
 }