getPdo()->exec( " CREATE TABLE SimpleEntity ( stringcol VARCHAR(250), intcol INT ); INSERT INTO SimpleEntity(stringcol, intcol) VALUES ('dings', 1), ('bumms', 2); " ); } #[Group('integration')] public function testSelectsData(): void { // Given $method = new RepositoryMethod( query: '', returnType: '', returnListType: SimpleEntity::class, name: '', parameters: [], resolutionStrategy: new FindAll() ); $query = $method->createQuery([]); // When $result = $query->execute($this->getPdo()); // Then $this->assertNotEmpty($result); $this->assertEquals( [ new SimpleEntity(1, 'dings'), new SimpleEntity(2, 'bumms') ], $result ); } }