public function testFindByShouldNotEqualTest()
 {
     $filter = new Filter();
     $filter->must()->contain('name', 'John Doe');
     $filter->should()->notEqual('name', 'Shigeru Miyamoto');
     $results = $this->repository->findBy($filter);
     $this->assertEquals(3, count($results));
 }
Exemplo n.º 2
0
 /**
  * Returns an array of Colors based on the filtering conditions.
  *
  * @param Filter|null $filter
  * @param Sort|null   $sort
  * @param Fields|null $fields
  *
  * @return Color[]
  */
 public function findBy(Filter $filter = null, Sort $sort = null, Fields $fields = null) : array
 {
     return parent::findBy($filter, $sort, $fields);
 }