Skip to content

Commit 3fbee01

Browse files
committed
Fix CI
1 parent 430fec7 commit 3fbee01

1 file changed

Lines changed: 17 additions & 25 deletions

File tree

resetFormatsAfterRequest_issue_test.patch

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
diff --git a/.env b/.env
1+
diff --git a/.env b/.env
22
index 726c7e5..0d25746 100644
33
--- a/.env
44
+++ b/.env
@@ -39,7 +39,7 @@ index fab85ac..8bcd6f2 100644
3939
+/config/jwt/*.pem
4040
+###< lexik/jwt-authentication-bundle ###
4141
diff --git a/composer.json b/composer.json
42-
index 4f28215..9906399 100644
42+
index 4f28215..56d40f0 100644
4343
--- a/composer.json
4444
+++ b/composer.json
4545
@@ -13,7 +13,9 @@
@@ -52,12 +52,13 @@ index 4f28215..9906399 100644
5252
"symfony/apache-pack": "^1.0",
5353
"symfony/console": "7.4.*",
5454
"symfony/dotenv": "7.4.*",
55-
@@ -33,5 +35,7 @@
55+
@@ -33,6 +35,8 @@
5656
"codeception/codeception": "^5.3",
5757
"codeception/module-asserts": "^3.2",
5858
"codeception/module-doctrine": "^3.3",
5959
+ "codeception/module-phpbrowser": "^4.0",
6060
+ "codeception/module-rest": "^3.4",
61+
"codeception/module-symfony": "^3.8 | *@dev",
6162
"doctrine/doctrine-fixtures-bundle": "^4.3",
6263
"friendsofphp/php-cs-fixer": "^3.94",
6364
@@ -104,7 +108,8 @@
@@ -70,18 +71,6 @@ index 4f28215..9906399 100644
7071
]
7172
},
7273
"conflict": {
73-
@@ -112,8 +117,8 @@
74-
},
75-
"extra": {
76-
"symfony": {
77-
- "allow-contrib": false,
78-
+ "allow-contrib": "true",
79-
"require": "7.4.*"
80-
}
81-
}
82-
-}
83-
+}
84-
\ No newline at end of file
8574
diff --git a/config/bundles.php b/config/bundles.php
8675
index d314828..21b1ce9 100644
8776
--- a/config/bundles.php
@@ -181,12 +170,12 @@ index 0000000..6311e85
181170
+ $uid->timeBasedUuidVersion(7);
182171
+};
183172
diff --git a/config/routes.php b/config/routes.php
184-
index 0446a1a..3f3b055 100644
173+
index c168115..7d3d857 100644
185174
--- a/config/routes.php
186175
+++ b/config/routes.php
187-
@@ -88,4 +88,7 @@ return static function (RoutingConfigurator $routes): void {
188-
$routes->add('send_email', '/send-email')
189-
->controller(App\Controller\SendEmailController::class)
176+
@@ -92,4 +92,7 @@ return static function (RoutingConfigurator $routes): void {
177+
$routes->add('send_message', '/send-message')
178+
->controller(App\Controller\SendMessageController::class)
190179
->methods(['GET']);
191180
+
192181
+ $routes->add('api_login', '/api/login')
@@ -299,7 +288,7 @@ index 9867a88..84e73fe 100644
299288
+ - REST:
300289
+ depends: Symfony
301290
diff --git a/tests/Functional/IssuesCest.php b/tests/Functional/IssuesCest.php
302-
index 88d2eac..c9cbd67 100644
291+
index ab6b1b2..2663524 100644
303292
--- a/tests/Functional/IssuesCest.php
304293
+++ b/tests/Functional/IssuesCest.php
305294
@@ -6,6 +6,7 @@ namespace App\Tests\Functional;
@@ -308,9 +297,9 @@ index 88d2eac..c9cbd67 100644
308297
use App\Tests\Support\FunctionalTester;
309298
+use Codeception\Util\HttpCode;
310299
use Doctrine\DBAL\Connection;
300+
use Symfony\Component\Mime\Message;
311301

312-
final class IssuesCest
313-
@@ -19,7 +20,7 @@ final class IssuesCest
302+
@@ -20,7 +21,7 @@ final class IssuesCest
314303
User::class,
315304
[
316305
'email' => 'fixture@fixture.test',
@@ -319,9 +308,9 @@ index 88d2eac..c9cbd67 100644
319308
]
320309
);
321310
$ormConnection = $I->grabService('doctrine.orm.default_entity_manager')->getConnection();
322-
@@ -53,4 +54,22 @@ final class IssuesCest
323-
$numRecords = $I->grabNumRecords(User::class);
324-
$I->assertSame(1, $numRecords);
311+
@@ -67,4 +68,22 @@ final class IssuesCest
312+
$I->assertEmailHeaderSame('Subject', 'Text message');
313+
$I->assertInstanceOf(Message::class, $I->grabLastSentEmail());
325314
}
326315
+
327316
+ /**
@@ -365,3 +354,6 @@ index 3e74da4..f39f916 100644
365354
public function registerUser(string $email, string $password, bool $followRedirects): void
366355
{
367356
$this->amOnPage('/register');
357+
--
358+
2.52.0.windows.1
359+

0 commit comments

Comments
 (0)