Commit 5da685b3 authored by okhin's avatar okhin 🚴

Test for User Finder complete

parent b36a6082
......@@ -69,14 +69,14 @@ class DonationSeeder extends AbstractSeed
),
array(
'id' => 3,
'status' => 1,
'status' => 100,
'datec' => '2016-06-10 12:34',
'somme' => 1000,
'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',
......
......@@ -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'));
}
}
......@@ -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'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment