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