/**
  * @test
  */
 public function testTicketsAreFiltered()
 {
     $tickets = array(new Ticket(new UniqueId('unique_id'), new TicketSequenceNumber(13), self::SUBJECT, self::DESCRIPTION, $this->createBranch(), new User(1, User::TYPE_DIAMANTE), $this->createAssignee(), new Source(Source::PHONE), new Priority(Priority::PRIORITY_LOW), new Status(Status::CLOSED)), new Ticket(new UniqueId('unique_id'), new TicketSequenceNumber(12), self::SUBJECT, self::DESCRIPTION, $this->createBranch(), new User(1, User::TYPE_ORO), $this->createAssignee(), new Source(Source::PHONE), new Priority(Priority::PRIORITY_LOW), new Status(Status::CLOSED)));
     $command = new FilterTicketsCommand();
     $command->reporter = 'oro_1';
     $pagingInfo = new PagingInfo(1, new FilterPagingProperties());
     $this->ticketRepository->expects($this->once())->method('filter')->with($this->equalTo(array(array('reporter', 'eq', 'oro_1'))), $this->equalTo(new FilterPagingProperties()))->will($this->returnValue(array($tickets[1])));
     $this->apiPagingService->expects($this->once())->method('getPagingInfo')->will($this->returnValue($pagingInfo));
     $this->markTestIncomplete("This test should be completed after DIAM-553");
     $this->userService->expects($this->atLeastOnce())->method('fetchUserDetails')->with($this->createDiamanteUser())->will($this->returnValue($this->createUserDetails()));
     $retrievedTickets = $this->ticketService->listAllTickets($command);
     $this->assertNotNull($retrievedTickets);
     $this->assertTrue(is_array($retrievedTickets));
     $this->assertNotEmpty($retrievedTickets);
     $this->assertEquals($tickets[1], $retrievedTickets[0]);
 }