Пример #1
0
 /**
  * Test case
  */
 public function testUpdate()
 {
     $config = array(array('label' => 'child'));
     $expected = new Enlight_Components_Menu($config);
     $expected->setAdapter($this->adapter)->write();
     $expected->findOneBy('label', 'child')->setLabel('update');
     $expected->write();
     $manager = new Enlight_Components_Menu();
     $manager->setAdapter($this->adapter)->read();
     $this->assertNotEmpty($manager->findOneBy('label', 'update'));
 }