Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
5da685b3
Commit
5da685b3
authored
Oct 13, 2018
by
Okhin
Browse files
Test for User Finder complete
parent
b36a6082
Changes
3
Hide whitespace changes
Inline
Side-by-side
db/seeds/DonationSeeder.php
View file @
5da685b3
...
...
@@ -69,14 +69,14 @@ class DonationSeeder extends AbstractSeed
),
array
(
'id'
=>
3
,
'status'
=>
1
,
'status'
=>
1
00
,
'datec'
=>
'2016-06-10 12:34'
,
'somme'
=>
100
0
,
'somme'
=>
100
,
'lang'
=>
'fr_FR'
,
'cadeau'
=>
1
,
'abo'
=>
1
,
'taille'
=>
8
,
'public'
=>
0
,
'public'
=>
1
,
'pdf'
=>
'pdf'
,
'decimale'
=>
2
,
'datee'
=>
'2016-06-10 12:34'
,
...
...
tests/functional/Finder/DonationFinderTest.php
View file @
5da685b3
...
...
@@ -40,4 +40,13 @@ class DonationFinderTest extends FunctionalTest
];
$this
->
assertEquals
(
$expectedDonation
,
$donations
[
1
]);
}
public
function
testAdminSearchDonations
()
{
$this
->
assertCount
(
1
,
$this
->
container
[
'donation_finder'
]
->
adminSearch
(
$text
=
'alice@example.org'
,
$sum
=
''
,
$public
=
''
,
$status
=
''
));
$this
->
assertCount
(
2
,
$this
->
container
[
'donation_finder'
]
->
adminSearch
(
$text
=
''
,
$sum
=
'1000'
,
$public
=
''
,
$status
=
''
));
$this
->
assertCount
(
2
,
$this
->
container
[
'donation_finder'
]
->
adminSearch
(
$text
=
''
,
$sum
=
''
,
$public
=
'0'
,
$status
=
''
));
$this
->
assertCount
(
2
,
$this
->
container
[
'donation_finder'
]
->
adminSearch
(
$text
=
''
,
$sum
=
''
,
$public
=
''
,
$status
=
'1'
));
}
}
tests/functional/Finder/UserFinderTest.php
View file @
5da685b3
...
...
@@ -23,4 +23,11 @@ class UserFinderTest extends FunctionalTest
];
$this
->
assertEquals
(
$expectedUser
,
$user
);
}
public
function
testAdminSearch
()
{
$this
->
assertCount
(
1
,
$this
->
container
[
'user_finder'
]
->
adminSearch
(
$text
=
'alice@example.org'
,
$status
=
''
));
$this
->
assertCount
(
1
,
$this
->
container
[
'user_finder'
]
->
adminSearch
(
$text
=
''
,
$status
=
'1'
));
}
}
Write
Preview
Supports
Markdown
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