Skip to content

Commit 575331c

Browse files
github-actions[bot]github-actions[bot]
github-actions[bot]
authored and
github-actions[bot]
committed
updated
1 parent 3e391ac commit 575331c

File tree

2 files changed

+155
-0
lines changed

2 files changed

+155
-0
lines changed

changelog.markdown

+23
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,29 @@ title: Codeception Changelog
99

1010

1111

12+
### module-symfony 3.5.1: 3.5.1
13+
14+
Released by [![](https://avatars.githubusercontent.com/u/64917965?v=4&s=16) TavoNiievez](https://github.com/TavoNiievez) on 2025/03/09 23:04:32 / [Repository](https://github.com/Codeception/module-symfony) / [Releases](https://github.com/Codeception/module-symfony/releases)
15+
16+
17+
18+
## What's Changed
19+
Support Symfony 7.2 (https://github.com/Codeception/module-symfony/pull/203).
20+
Added Symfony Translation assertions (https://github.com/Codeception/module-symfony/pull/205):
21+
- `dontSeeFallbackTranslations`
22+
- `dontSeeMissingTranslations`
23+
- `grabDefinedTranslationsCount`
24+
- `seeAllTranslationsDefined`
25+
- `seeDefaultLocaleIs`
26+
- `seeFallbackLocalesAre`
27+
- `seeFallbackTranslationsCountLessThan`
28+
- `seeMissingTranslationsCountLessThan`
29+
30+
Added Symfony Logger assertion (`dontSeeDeprecations`) (https://github.com/Codeception/module-symfony/pull/206).
31+
32+
**Full Changelog**: https://github.com/Codeception/module-symfony/compare/3.5.0...3.5.1
33+
34+
1235
### module-db 3.2.2: 3.2.2
1336

1437
Released by [![](https://avatars.githubusercontent.com/u/4129631?v=4&s=16) szhajdu](https://github.com/szhajdu) on 2025/03/03 08:10:59 / [Repository](https://github.com/Codeception/module-db) / [Releases](https://github.com/Codeception/module-db/releases)

docs/modules/Symfony.md

+132
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,22 @@ $I->dontSeeCurrentUrlMatches('~^/users/(\d+)~');
10861086
{% endhighlight %}
10871087
10881088
1089+
#### dontSeeDeprecations
1090+
1091+
* `param string` $message Optional custom failure message.
1092+
* `return void`
1093+
1094+
Asserts that there are no deprecation messages in Symfony's log.
1095+
1096+
{% highlight php %}
1097+
1098+
<?php
1099+
$I->amOnPage('/home');
1100+
$I->dontSeeDeprecations();
1101+
1102+
{% endhighlight %}
1103+
1104+
10891105
#### dontSeeElement
10901106
10911107
* `param ` $selector
@@ -1173,6 +1189,20 @@ $I->dontSeeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
11731189
{% endhighlight %}
11741190
11751191
1192+
#### dontSeeFallbackTranslations
1193+
1194+
* `return void`
1195+
1196+
Asserts that no fallback translations were found.
1197+
1198+
{% highlight php %}
1199+
1200+
<?php
1201+
$I->dontSeeFallbackTranslations();
1202+
1203+
{% endhighlight %}
1204+
1205+
11761206
#### dontSeeFormErrors
11771207
11781208
* `return void`
@@ -1332,6 +1362,20 @@ $I->dontSeeLink('Checkout now', '/store/cart.php');
13321362
{% endhighlight %}
13331363
13341364
1365+
#### dontSeeMissingTranslations
1366+
1367+
* `return void`
1368+
1369+
Asserts that no missing translations were found.
1370+
1371+
{% highlight php %}
1372+
1373+
<?php
1374+
$I->dontSeeMissingTranslations();
1375+
1376+
{% endhighlight %}
1377+
1378+
13351379
#### dontSeeOptionIsSelected
13361380
13371381
* `param ` $selector
@@ -1509,6 +1553,20 @@ You can set additional cookie params like `domain`, `path` in array passed as la
15091553
If the cookie is set by an ajax request (XMLHttpRequest), there might be some delay caused by the browser, so try `$I->wait(0.1)`.
15101554
15111555
1556+
#### grabDefinedTranslationsCount
1557+
1558+
* `return int` The count of defined translations.
1559+
1560+
Grabs the count of defined translations.
1561+
1562+
{% highlight php %}
1563+
1564+
<?php
1565+
$count = $I->grabDefinedTranslations();
1566+
1567+
{% endhighlight %}
1568+
1569+
15121570
#### grabFromCurrentUrl
15131571
15141572
* `param ?string` $uri
@@ -1933,6 +1991,20 @@ But will *not* be true for strings like:
19331991
For checking the raw source code, use `seeInSource()`.
19341992
19351993
1994+
#### seeAllTranslationsDefined
1995+
1996+
* `return void`
1997+
1998+
Asserts that there are no missing translations and no fallback translations.
1999+
2000+
{% highlight php %}
2001+
2002+
<?php
2003+
$I->seeAllTranslationsDefined();
2004+
2005+
{% endhighlight %}
2006+
2007+
19362008
#### seeAuthentication
19372009
19382010
* `return void`
@@ -2064,6 +2136,21 @@ $I->seeCurrentUrlMatches('~^/users/(\d+)~');
20642136
{% endhighlight %}
20652137
20662138
2139+
#### seeDefaultLocaleIs
2140+
2141+
* `param string` $expectedLocale The expected default locale
2142+
* `return void`
2143+
2144+
Asserts that the default locale is the expected one.
2145+
2146+
{% highlight php %}
2147+
2148+
<?php
2149+
$I->seeDefaultLocaleIs('en');
2150+
2151+
{% endhighlight %}
2152+
2153+
20672154
#### seeElement
20682155
20692156
* `param ` $selector
@@ -2165,6 +2252,36 @@ $I->seeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
21652252
{% endhighlight %}
21662253
21672254
2255+
#### seeFallbackLocalesAre
2256+
2257+
* `param array` $expectedLocales The expected fallback locales
2258+
* `return void`
2259+
2260+
Asserts that the fallback locales match the expected ones.
2261+
2262+
{% highlight php %}
2263+
2264+
<?php
2265+
$I->seeFallbackLocalesAre(['es', 'fr']);
2266+
2267+
{% endhighlight %}
2268+
2269+
2270+
#### seeFallbackTranslationsCountLessThan
2271+
2272+
* `param int` $limit Maximum count of fallback translations
2273+
* `return void`
2274+
2275+
Asserts that the count of fallback translations is less than the given limit.
2276+
2277+
{% highlight php %}
2278+
2279+
<?php
2280+
$I->seeFallbackTranslationsCountLessThan(10);
2281+
2282+
{% endhighlight %}
2283+
2284+
21682285
#### seeFormErrorMessage
21692286
21702287
* `param string` $field
@@ -2443,6 +2560,21 @@ $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>
24432560
{% endhighlight %}
24442561
24452562
2563+
#### seeMissingTranslationsCountLessThan
2564+
2565+
* `param int` $limit Maximum count of missing translations
2566+
* `return void`
2567+
2568+
Asserts that the count of missing translations is less than the given limit.
2569+
2570+
{% highlight php %}
2571+
2572+
<?php
2573+
$I->seeMissingTranslationsCountLessThan(5);
2574+
2575+
{% endhighlight %}
2576+
2577+
24462578
#### seeNumRecords
24472579
24482580
* `param int` $expectedNum Expected number of records

0 commit comments

Comments
 (0)