diff --git a/db/seeds/Event.php b/db/seeds/Event.php index 93aa20476..f74d5fc2a 100644 --- a/db/seeds/Event.php +++ b/db/seeds/Event.php @@ -40,7 +40,8 @@ public function run() 'date_fin_saisie_repas_speakers' => $event - $oneDayInSeconds * 7, 'date_fin_saisie_nuites_hotel' => $event - $oneDayInSeconds * 7, 'place_name' => 'Paris', - 'place_address' => 'Marriott Rive Gauche' + 'place_address' => 'Marriott Rive Gauche', + 'date_annonce_planning' => date('Y-m-d', $event), ], ]; diff --git a/db/seeds/Session.php b/db/seeds/Session.php index e006e769a..d49adbe83 100644 --- a/db/seeds/Session.php +++ b/db/seeds/Session.php @@ -35,7 +35,7 @@ public function run() 'language_code' => 'fr', 'markdown' => 1, 'joindin' => 24041, - 'date_publication' => $date->format('Y-m-d H:i:s') + 'date_publication' => null ], [ 'session_id' => self::ID_SESSIONS[1], @@ -59,7 +59,7 @@ public function run() 'language_code' => 'fr', 'markdown' => 0, 'joindin' => 24138, - 'date_publication' => $date->format('Y-m-d H:i:s') + 'date_publication' => (new \DateTime())->modify('-1 days')->format('Y-m-d H:i:s') ], [ 'session_id' => 3, @@ -81,7 +81,7 @@ public function run() 'language_code' => 'fr', 'markdown' => 1, 'joindin' => 24041, - 'date_publication' => $date->format('Y-m-d H:i:s') + 'date_publication' => (new \DateTime())->modify('+5 days')->format('Y-m-d H:i:s') ], ]; @@ -111,6 +111,16 @@ public function run() ->save() ; + $table = $this->table('afup_forum_salle'); + $table->truncate(); + + $table + ->insert([ + 'id' => 1, + 'nom' => 'La salle T', + 'id_forum' => Event::ID_FORUM, + ]) + ->save(); $i = 1; $plannings = []; @@ -120,7 +130,7 @@ public function run() 'id_session' => $session['session_id'], 'debut' => $dateDebut->format('U'), 'fin' => $date->format('U'), - 'id_salle' => 0, + 'id_salle' => 1, 'id_forum' => Event::ID_FORUM, 'keynote' => '' ]; diff --git a/tests/behat/features/Admin/Events/Salles.feature b/tests/behat/features/Admin/Events/Salles.feature index 71334accc..7d4492c50 100644 --- a/tests/behat/features/Admin/Events/Salles.feature +++ b/tests/behat/features/Admin/Events/Salles.feature @@ -9,7 +9,7 @@ Feature: Administration - Évènements - Salles When I press "Ajouter" And I should see "La salle \"La salle ronde\" a été ajoutée." And I should see "Liste des salles pour forum" - And I fill in "edit_room_53_name" with "La grande salle ronde" + And I fill in "edit_room_1_name" with "La grande salle ronde" When I press "Sauvegarder" And I should see "La salle \"La grande salle ronde\" a été sauvegardée." And I should see "Liste des salles pour forum" diff --git a/tests/behat/features/Api/Api.feature b/tests/behat/features/Api/Api.feature new file mode 100644 index 000000000..7870170cd --- /dev/null +++ b/tests/behat/features/Api/Api.feature @@ -0,0 +1,51 @@ +Feature: API pour event + + @reloadDbWithTestData + Scenario: Liste du programme sans filtre + Given I am on "/blog/forum/program?apply-publication-date-filters=0&speakers-page-prefix=/forum/conferencier-e-s/" + Then the response should contain "