Ejemplo n.º 1
0
 /**
  * @test
  */
 public function updatePropertiesMarksPropertyAsChangedOnlyOnce()
 {
     $fixture = new \TYPO3\CMS\Core\Resource\File(array('uid' => 1, 'foo' => 'asdf', 'baz' => 'fdsw', 'identifier' => '/test'), $this->storageMock);
     $fixture->updateProperties(array('foo' => 'foobar', 'baz' => 'foobaz'));
     $fixture->updateProperties(array('foo' => 'fdsw', 'baz' => 'asdf'));
     $this->assertEquals(array('foo', 'baz'), $fixture->getUpdatedProperties());
 }