Skip to content
Extraits de code Groupes Projets
Valider e62567f6 rédigé par Okhin's avatar Okhin
Parcourir les fichiers

Test for User Finder complete

parent 8064ac2a
Branches
Étiquettes
3 requêtes de fusion!37Mise en production,!13Resolve "La structure des piplomes à changer, le Finder n'est plus fonctionnels.",!8WIP: Resolve "Améliorer et ajouter des tests"
......@@ -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'));
}
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter