public function testEventInfo()
{
$events = $this->getAndCallMethod($this->buffer, 'extractEvents', array($this->getDomElement($this->eventWithInfoXml), 'system'));
$this->assertCount(1, $events);
$eventWithInfo = $events[0];
$this->assertInstanceOf('Jackalope\\Observation\\Event', $eventWithInfo);
/** @var $eventWithInfo Event */
$eventInfo = $eventWithInfo->getInfo();
$this->assertEquals($this->expectedEventWithInfo->getInfo(), $eventInfo);
$expectedInfo = array('destAbsPath' => '/my_other', 'srcAbsPath' => '/my_node');
$this->assertEquals(count($expectedInfo), count($eventInfo));
foreach ($expectedInfo as $key => $expectedValue) {
$value = $eventInfo[$key];
$this->assertSame($expectedValue, $value);
}
$this->nodeTypeManager->expects($this->at(0))->method('getNodeType')->with('{internal}root')->will($this->returnValue(true));
$this->nodeTypeManager->expects($this->at(1))->method('getNodeType')->with('{internal}AccessControllable')->will($this->returnValue(true));
$this->assertTrue($eventWithInfo->getPrimaryNodeType());
$this->assertEquals(array('{internal}AccessControllable' => true), $eventWithInfo->getMixinNodeTypes());
}