diff --git a/api/models/ChangePasswordForm.php b/api/models/ChangePasswordForm.php index 33b6c70..b112f64 100644 --- a/api/models/ChangePasswordForm.php +++ b/api/models/ChangePasswordForm.php @@ -1,10 +1,11 @@ validate()) { diff --git a/api/models/LoginForm.php b/api/models/LoginForm.php index a123560..0d43056 100644 --- a/api/models/LoginForm.php +++ b/api/models/LoginForm.php @@ -1,10 +1,11 @@ specify('model should load data without ModelName array scope', function() use ($model) { + $model = new DummyApiForm(); + $this->specify('model should load data without ModelName array scope', function () use ($model) { expect('model successful load data without prefix', $model->load(['field' => 'test-data']))->true(); expect('field is set as passed data', $model->field)->equals('test-data'); }); @@ -18,7 +19,7 @@ class BaseApiFormTest extends TestCase { } -class DummyBaseApiForm extends BaseApiForm { +class DummyApiForm extends ApiForm { public $field; diff --git a/tests/codeception/api/unit/models/BasePasswordProtectedFormTest.php b/tests/codeception/api/unit/models/base/BasePasswordProtectedFormTest.php similarity index 82% rename from tests/codeception/api/unit/models/BasePasswordProtectedFormTest.php rename to tests/codeception/api/unit/models/base/BasePasswordProtectedFormTest.php index d51e1aa..2256163 100644 --- a/tests/codeception/api/unit/models/BasePasswordProtectedFormTest.php +++ b/tests/codeception/api/unit/models/base/BasePasswordProtectedFormTest.php @@ -1,12 +1,12 @@ $key, ]); }