for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Test\Assert;
use Symfony\Bundle\FrameworkBundle\Client;
/**
* @method Client getClient()
* @requires DoctrineHelperTrait
* @deprecated in favor of Behat tests
*/
trait DoctrineAssertTrait
{
* @param string $class
* @param array $criteria
public static function assertRepositoryContains($class, $criteria)
static::assertNotNull(static::getRepository($class)->findOneBy($criteria));
}
public static function assertRepositoryNotContains($class, $criteria)
static::assertNull(static::getRepository($class)->findOneBy($criteria));