Example #1
0
 /**
  * @test
  */
 public function shouldGetNewCacheAfterRecordHasBeenUpdated()
 {
     // given
     $capital = new Capital(2);
     $this->triggerJSONFor('Capital', 2);
     $capital->setName('Stavanger');
     $capital->commit();
     // when
     $this->triggerJSONFor('Capital', 2);
     $json = new LudoDBCache($capital, array(2));
     $values = $json->getCache();
     // then
     $this->assertEquals('Stavanger', $values['name']);
 }