/**
  * @test
  */
 public function purgeItemArrayReturnsTrueIfItemsHaveBeenPurged()
 {
     $GLOBALS['TCA']['sys_category']['ctrl']['versioningWS'] = true;
     $this->subject->tableArray = array('sys_category' => array(1, 2, 3));
     $this->subject->expects($this->once())->method('purgeVersionedIds')->with('sys_category', array(1, 2, 3))->will($this->returnValue(array(2)));
     $this->assertTrue($this->subject->purgeItemArray(0));
 }