Skip to content

Commit

Permalink
Fixed tests and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed May 22, 2024
1 parent 60e81d5 commit 183d489
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: CI

on:
push: ~
push:
branches:
- main
pull_request: ~
# schedule:
# - cron: 0 13 * * MON,THU
Expand Down
11 changes: 9 additions & 2 deletions tests/ContaoTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ protected function query(string $statement): int
return (int) $connection->lastInsertId();
}

protected function createRootPage(string $dns = '', string $language = '', bool $fallback = true, int $languageRoot = 0, bool $published = true): PageModel
/**
* @param int|string $languageRoot
*/
protected function createRootPage(string $dns = '', string $language = '', bool $fallback = true, $languageRoot = 0, bool $published = true): PageModel
{
$pageModel = new PageModel();
$pageModel->type = 'root';
Expand All @@ -56,7 +59,11 @@ protected function createRootPage(string $dns = '', string $language = '', bool
return $pageModel;
}

protected function createPage(int $pid = 0, int $languageMain = 0, bool $published = true): PageModel
/**
* @param int|string $pid
* @param int|string $languageMain
*/
protected function createPage($pid = 0, $languageMain = 0, bool $published = true): PageModel
{
$pageModel = new PageModel();
$pageModel->pid = $pid;
Expand Down

0 comments on commit 183d489

Please sign in to comment.