use TheCodingMachine\TDBM\TDBMAbstractServiceTest;
7
use TheCodingMachine\TDBM\TDBMException;
8
9
class FindObjectsFromRawSqlQueryFactoryTest extends TDBMAbstractServiceTest
10
{
11
12
public function testGetSubQueryColumnDescriptors(): void
13
{
14
$queryFactory = new FindObjectsFromRawSqlQueryFactory($this->tdbmService, $this->tdbmService->getConnection()->getSchemaManager()->createSchema(), 'country', 'SELECT country.* FROM country');
15
$this->expectException(TDBMException::class);
16
$queryFactory->getSubQueryColumnDescriptors();
17
}
18
19
public function testGetMagicSqlSubQuery(): void
20
{
21
$queryFactory = new FindObjectsFromRawSqlQueryFactory($this->tdbmService, $this->tdbmService->getConnection()->getSchemaManager()->createSchema(), 'country', 'SELECT country.* FROM country');