@@ -1086,6 +1086,22 @@ $I->dontSeeCurrentUrlMatches('~^/users/(\d+)~');
1086
1086
{% endhighlight %}
1087
1087
1088
1088
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
+
1089
1105
#### dontSeeElement
1090
1106
1091
1107
* `param ` $selector
@@ -1173,6 +1189,20 @@ $I->dontSeeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
1173
1189
{% endhighlight %}
1174
1190
1175
1191
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
+
1176
1206
#### dontSeeFormErrors
1177
1207
1178
1208
* `return void`
@@ -1332,6 +1362,20 @@ $I->dontSeeLink('Checkout now', '/store/cart.php');
1332
1362
{% endhighlight %}
1333
1363
1334
1364
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
+
1335
1379
#### dontSeeOptionIsSelected
1336
1380
1337
1381
* `param ` $selector
@@ -1509,6 +1553,20 @@ You can set additional cookie params like `domain`, `path` in array passed as la
1509
1553
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)`.
1510
1554
1511
1555
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
+
1512
1570
#### grabFromCurrentUrl
1513
1571
1514
1572
* `param ?string` $uri
@@ -1933,6 +1991,20 @@ But will *not* be true for strings like:
1933
1991
For checking the raw source code, use `seeInSource()`.
1934
1992
1935
1993
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
+
1936
2008
#### seeAuthentication
1937
2009
1938
2010
* `return void`
@@ -2064,6 +2136,21 @@ $I->seeCurrentUrlMatches('~^/users/(\d+)~');
2064
2136
{% endhighlight %}
2065
2137
2066
2138
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
+
2067
2154
#### seeElement
2068
2155
2069
2156
* `param ` $selector
@@ -2165,6 +2252,36 @@ $I->seeEventTriggered(['App\MyEvent', 'App\MyOtherEvent']);
2165
2252
{% endhighlight %}
2166
2253
2167
2254
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
+
2168
2285
#### seeFormErrorMessage
2169
2286
2170
2287
* `param string` $field
@@ -2443,6 +2560,21 @@ $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>
2443
2560
{% endhighlight %}
2444
2561
2445
2562
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
+
2446
2578
#### seeNumRecords
2447
2579
2448
2580
* `param int` $expectedNum Expected number of records
0 commit comments