Skip to content

Commit

Permalink
run all
Browse files Browse the repository at this point in the history
  • Loading branch information
mringler committed Sep 29, 2023
1 parent 0f45479 commit feda085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
- name: Run tests
shell: 'script -q -e -c "bash {0}"'
run: |
vendor/bin/phpunit -c tests/${{ matrix.db-type }}.phpunit.xml tests/Propel/Tests/Runtime/ActiveQuery/ExistsTest.php
vendor/bin/phpunit -c tests/${{ matrix.db-type }}.phpunit.xml
6 changes: 5 additions & 1 deletion tests/Propel/Tests/Runtime/ActiveQuery/ExistsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ public function testWhereNotExists()
[$author1, $author2, $author3, $author4] = $this->createTestData();
// all authors with no bad book
$existsQueryCriteria = BookQuery::create()->filterByTitle('bad')->where('Book.AuthorId = Author.Id');
$authors = AuthorQuery::create()->whereNotExists($existsQueryCriteria)->orderById()->find($this->con)->getData();
$query = AuthorQuery::create()->whereNotExists($existsQueryCriteria)->orderById();
$props = [];
var_dump($query->createSelectSql($props));
var_dump(AuthorQuery::create()->find()->toJSON(), BookQuery::create()->find()->toJSON());
$authors = $query->find($this->con)->getData();

$this->assertEquals([$author3, $author4], $authors);
}
Expand Down

0 comments on commit feda085

Please sign in to comment.