Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
92174780
Commit
92174780
authored
Mar 29, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test groups (annotations), removed unused folders
parent
8563069b
Pipeline
#8430
failed with stages
Changes
28
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
70 additions
and
22 deletions
+70
-22
test-allow_failure.sh
build/scripts/test-allow_failure.sh
+1
-3
test.sh
build/scripts/test.sh
+2
-3
05-AdminLoginCept.php
tests/codeception/acceptance/app/05-AdminLoginCept.php
+2
-0
10-PreviewRoleCept.php
tests/codeception/acceptance/app/10-PreviewRoleCept.php
+2
-0
11-PreviewUserCept.php
tests/codeception/acceptance/app/11-PreviewUserCept.php
+3
-0
BackendAccessCept.php
tests/codeception/acceptance/app/BackendAccessCept.php
+2
-0
HomeCept.php
tests/codeception/acceptance/app/HomeCept.php
+2
-0
JavaScriptCept.php
tests/codeception/acceptance/app/JavaScriptCept.php
+2
-0
LanguagesCept.php
tests/codeception/acceptance/app/LanguagesCept.php
+2
-7
LoginCept.php
tests/codeception/acceptance/app/LoginCept.php
+2
-0
LogoutFrontendCept.php
tests/codeception/acceptance/app/LogoutFrontendCept.php
+2
-0
MobileCept.php
tests/codeception/acceptance/app/MobileCept.php
+2
-7
PreviewAccessCept.php
tests/codeception/acceptance/app/PreviewAccessCept.php
+1
-1
SignupCept.php
tests/codeception/acceptance/app/SignupCept.php
+1
-1
PagesModule.php
tests/codeception/acceptance/vendor/PagesModule.php
+3
-0
SettingsModule.php
tests/codeception/acceptance/vendor/SettingsModule.php
+16
-0
AccessControlCept.php
tests/codeception/functional/AccessControlCept.php
+2
-0
AccessControlUICept.php
tests/codeception/functional/AccessControlUICept.php
+2
-0
BackendCept.php
tests/codeception/functional/BackendCept.php
+2
-0
ErrorPageCept.php
tests/codeception/functional/ErrorPageCept.php
+2
-0
HomeCept.php
tests/codeception/functional/HomeCept.php
+2
-0
LanugagesCept.php
tests/codeception/functional/LanugagesCept.php
+2
-0
LoginCept.php
tests/codeception/functional/LoginCept.php
+2
-0
VersionCept.php
tests/codeception/functional/VersionCept.php
+2
-0
.gitkeep
tests/codeception/unit/fixtures/.gitkeep
+0
-0
.gitkeep
tests/codeception/unit/fixtures/data/.gitkeep
+0
-0
UserTest.php
tests/codeception/unit/models/UserTest.php
+9
-0
.gitkeep
tests/codeception/unit/templates/fixtures/.gitkeep
+0
-0
No files found.
build/scripts/test-allow_failure.sh
View file @
92174780
...
...
@@ -7,8 +7,6 @@ make TEST setup up
set
+e
set
-v
make TEST run-tests
codecept_opts
=
'functional allow_fail --html=_report_allow_fail_functional.html'
||
EXIT_CODE
=
1
make TEST run-tests
codecept_opts
=
'acceptance allow_fail --html=_report_allow_fail_acceptance.html'
||
EXIT_CODE
=
1
make TEST run-tests
codecept_opts
=
'unit,functional,acceptance -g optional --html=_report_optional.html'
||
EXIT_CODE
=
1
set
-e
exit
${
EXIT_CODE
}
build/scripts/test.sh
View file @
92174780
...
...
@@ -10,8 +10,7 @@ make TEST clean-tests
set
-v
set
+e
make TEST run-tests
codecept_opts
=
'unit prod --html=_report_unit.html'
||
EXIT_CODE
=
1
make TEST run-tests
codecept_opts
=
'functional prod --html=_report_functional.html'
||
EXIT_CODE
=
1
make TEST run-tests
codecept_opts
=
'acceptance prod --html=_report_acceptance.html'
||
EXIT_CODE
=
1
make TEST run-tests
codecept_opts
=
'unit,functional,acceptance -g mandatory --html=_report_mandatory.html'
||
EXIT_CODE
=
1
exit
${
EXIT_CODE
}
tests/codeception/acceptance/
prod/
app/05-AdminLoginCept.php
→
tests/codeception/acceptance/app/05-AdminLoginCept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/10-PreviewRoleCept.php
→
tests/codeception/acceptance/app/10-PreviewRoleCept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/11-PreviewUserCept.php
→
tests/codeception/acceptance/app/11-PreviewUserCept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/BackendAccessCept.php
→
tests/codeception/acceptance/app/BackendAccessCept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/HomeCept.php
→
tests/codeception/acceptance/app/HomeCept.php
View file @
92174780
<?php
// @group mandatory
$I
=
new
AcceptanceTester
(
$scenario
);
$I
->
wantTo
(
'ensure that home page is not visible without login'
);
...
...
tests/codeception/acceptance/
prod/
app/JavaScriptCept.php
→
tests/codeception/acceptance/app/JavaScriptCept.php
View file @
92174780
<?php
// @group mandatory
$I
=
new
AcceptanceTester
(
$scenario
);
$I
->
wantTo
(
'ensure that JavaScript works'
);
...
...
tests/codeception/acceptance/
prod/
app/LanguagesCept.php
→
tests/codeception/acceptance/app/LanguagesCept.php
View file @
92174780
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// @group mandatory
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/LoginCept.php
→
tests/codeception/acceptance/app/LoginCept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/a
llow_fail
/LogoutFrontendCept.php
→
tests/codeception/acceptance/a
pp
/LogoutFrontendCept.php
View file @
92174780
<?php
// @group optional
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/MobileCept.php
→
tests/codeception/acceptance/app/MobileCept.php
View file @
92174780
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// @group mandatory
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/PreviewAccessCept.php
→
tests/codeception/acceptance/app/PreviewAccessCept.php
View file @
92174780
<?php
use
tests\codeception\_pages\AboutPage
;
// @group mandatory
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
app/SignupCept.php
→
tests/codeception/acceptance/app/SignupCept.php
View file @
92174780
<?php
use
tests\codeception\_pages\AboutPage
;
// @group mandatory
$I
=
new
AcceptanceTester
(
$scenario
);
$I
->
wantTo
(
'ensure that sign-up works'
);
...
...
tests/codeception/acceptance/
prod/
vendor/PagesModule.php
→
tests/codeception/acceptance/vendor/PagesModule.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
AcceptanceTester
(
$scenario
);
...
...
tests/codeception/acceptance/
prod/
vendor/SettingsModule.php
→
tests/codeception/acceptance/vendor/SettingsModule.php
View file @
92174780
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// @group mandatory
use
\tests\codeception\_pages\LoginPage
;
...
...
tests/codeception/functional/
prod/
AccessControlCept.php
→
tests/codeception/functional/AccessControlCept.php
View file @
92174780
<?php
// @group mandatory
$I
=
new
FunctionalTester
(
$scenario
);
$I
->
wantTo
(
'ensure that access control works'
);
...
...
tests/codeception/functional/
prod/
AccessControlUICept.php
→
tests/codeception/functional/AccessControlUICept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
FunctionalTester
(
$scenario
);
...
...
tests/codeception/functional/
allow_fail/
BackendCept.php
→
tests/codeception/functional/BackendCept.php
View file @
92174780
<?php
// @group optional
use
tests\codeception\_pages\LoginPage
;
$I
=
new
FunctionalTester
(
$scenario
);
...
...
tests/codeception/functional/
prod/
ErrorPageCept.php
→
tests/codeception/functional/ErrorPageCept.php
View file @
92174780
<?php
// @group mandatory
$I
=
new
FunctionalTester
(
$scenario
);
$I
->
wantTo
(
'ensure that error page works'
);
...
...
tests/codeception/functional/
allow_fail/
HomeCept.php
→
tests/codeception/functional/HomeCept.php
View file @
92174780
<?php
// @group optional
$I
=
new
FunctionalTester
(
$scenario
);
$I
->
wantTo
(
'ensure that home page works'
);
$I
->
amOnPage
(
Yii
::
$app
->
homeUrl
);
...
...
tests/codeception/functional/
prod/
LanugagesCept.php
→
tests/codeception/functional/LanugagesCept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
FunctionalTester
(
$scenario
);
...
...
tests/codeception/functional/
prod/
LoginCept.php
→
tests/codeception/functional/LoginCept.php
View file @
92174780
<?php
// @group mandatory
use
tests\codeception\_pages\LoginPage
;
$I
=
new
FunctionalTester
(
$scenario
);
...
...
tests/codeception/functional/
prod/
VersionCept.php
→
tests/codeception/functional/VersionCept.php
View file @
92174780
<?php
// @group mandatory
$I
=
new
FunctionalTester
(
$scenario
);
$I
->
wantTo
(
'check application versioning'
);
...
...
tests/codeception/unit/fixtures/.gitkeep
deleted
100755 → 0
View file @
8563069b
tests/codeception/unit/fixtures/data/.gitkeep
deleted
100755 → 0
View file @
8563069b
tests/codeception/unit/
prod/
models/UserTest.php
→
tests/codeception/unit/models/UserTest.php
View file @
92174780
...
...
@@ -15,17 +15,26 @@ class UserTest extends TestCase
parent
::
setUp
();
}
/**
* @group mandatory
*/
public
function
testUserLogout
()
{
$this
->
assertTrue
(
\Yii
::
$app
->
user
->
logout
());
}
/**
* @group mandatory
*/
public
function
testUserLogin
()
{
$identity
=
User
::
findIdentity
(
1
);
$this
->
assertTrue
(
\Yii
::
$app
->
user
->
login
(
$identity
,
3600
));
}
/**
* @group mandatory
*/
public
function
testNonExistingUserModel
()
{
$identity
=
User
::
findIdentity
(
99999
);
...
...
tests/codeception/unit/templates/fixtures/.gitkeep
deleted
100755 → 0
View file @
8563069b
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment