-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
794 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit; | ||
|
||
use Codeception\Test\Unit; | ||
use Vokuro\Application; | ||
|
||
final class ApplicationTest extends Unit | ||
{ | ||
public function testConstructAndGetRootPath(): void | ||
{ | ||
$rootPath = 'test/path'; | ||
$class = $this->constructEmptyExcept(Application::class, 'getRootPath', ['rootPath' => $rootPath]); | ||
|
||
$this->assertEquals($rootPath, $class->getRootPath()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\AboutController; | ||
|
||
final class AboutControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(AboutController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\ControllerBase; | ||
|
||
final class ControllerBaseTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(ControllerBase::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\IndexController; | ||
|
||
final class IndexControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(IndexController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\PermissionsController; | ||
|
||
final class PermissionsControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(PermissionsController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\PrivacyController; | ||
|
||
final class PrivacyControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(PrivacyController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\ProfilesController; | ||
|
||
final class ProfilesControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(ProfilesController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\SessionController; | ||
|
||
final class SessionControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(SessionController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\TermsController; | ||
|
||
final class TermsControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(TermsController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\UserControlController; | ||
|
||
final class UserControlControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(UserControlController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Controllers; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Controller; | ||
use Vokuro\Controllers\UsersController; | ||
|
||
final class UsersControllerTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(UsersController::class); | ||
|
||
$this->assertInstanceOf(Controller::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Forms; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Forms\Form; | ||
use Vokuro\Forms\ChangePasswordForm; | ||
|
||
final class ChangePasswordFormTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(ChangePasswordForm::class); | ||
|
||
$this->assertInstanceOf(Form::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Forms; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Forms\Form; | ||
use Vokuro\Forms\ForgotPasswordForm; | ||
|
||
final class ForgotPasswordFormTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(ForgotPasswordForm::class); | ||
|
||
$this->assertInstanceOf(Form::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Forms; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Forms\Form; | ||
use Vokuro\Forms\LoginForm; | ||
|
||
final class LoginFormTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(LoginForm::class); | ||
|
||
$this->assertInstanceOf(Form::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Forms; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Forms\Form; | ||
use Vokuro\Forms\ProfilesForm; | ||
|
||
final class ProfilesFormTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(ProfilesForm::class); | ||
|
||
$this->assertInstanceOf(Form::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Forms; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Forms\Form; | ||
use Vokuro\Forms\SignUpForm; | ||
|
||
final class SignUpFormTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(SignUpForm::class); | ||
|
||
$this->assertInstanceOf(Form::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Forms; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Forms\Form; | ||
use Vokuro\Forms\UsersForm; | ||
|
||
final class UsersFormTest extends Unit | ||
{ | ||
public function testConstruct(): void | ||
{ | ||
$class = $this->make(UsersForm::class); | ||
|
||
$this->assertInstanceOf(Form::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Models; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Model; | ||
use Vokuro\Models\FailedLogins; | ||
|
||
final class FailedLoginsTest extends Unit | ||
{ | ||
public function testModelInstanceOf(): void | ||
{ | ||
$class = $this->make(FailedLogins::class); | ||
|
||
$this->assertInstanceOf(Model::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Models; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Model; | ||
use Vokuro\Models\PasswordChanges; | ||
|
||
final class PasswordChangesTest extends Unit | ||
{ | ||
public function testModelInstanceOf(): void | ||
{ | ||
$class = $this->make(PasswordChanges::class); | ||
|
||
$this->assertInstanceOf(Model::class, $class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Vokuro\Tests\Unit\Models; | ||
|
||
use Codeception\Test\Unit; | ||
use Phalcon\Mvc\Model; | ||
use Vokuro\Models\Permissions; | ||
|
||
final class PermissionsTest extends Unit | ||
{ | ||
public function testModelInstanceOf(): void | ||
{ | ||
$class = $this->make(Permissions::class); | ||
|
||
$this->assertInstanceOf(Model::class, $class); | ||
} | ||
} |
Oops, something went wrong.