mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 07:19:03 +02:00
refactor: add rector to enforce type declarations, code quality + style and remove dead code
- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
This commit is contained in:
parent
a54a5964c3
commit
5c5c6da4be
302 changed files with 9802 additions and 4674 deletions
|
|
@ -1,8 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Database;
|
||||
|
||||
use Tests\Support\DatabaseTestCase;
|
||||
use Tests\Support\Models\ExampleModel;
|
||||
|
||||
class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase
|
||||
class ExampleDatabaseTest extends DatabaseTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
|
@ -11,7 +14,7 @@ class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase
|
|||
// Extra code to run before each test
|
||||
}
|
||||
|
||||
public function testModelFindAll()
|
||||
public function testModelFindAll(): void
|
||||
{
|
||||
$model = new ExampleModel();
|
||||
|
||||
|
|
@ -22,7 +25,7 @@ class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase
|
|||
$this->assertCount(3, $objects);
|
||||
}
|
||||
|
||||
public function testSoftDeleteLeavesRow()
|
||||
public function testSoftDeleteLeavesRow(): void
|
||||
{
|
||||
$model = new ExampleModel();
|
||||
$this->setPrivateProperty($model, 'useSoftDeletes', true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue