@@ -69,14 +69,14 @@ services:
6969
7070* Browser output debug
7171
72- You can output the content of response in your browser, just calling `self::saveOutput()`.
72+ You can output the content of the response in your browser, just calling `self::saveOutput()`.
7373 You can define a parameter named `domain`, otherwise standard localhost will be used.
7474 The output is saved under the document root and displayed with a browser (by default, `/usr/bin/firefox`),
7575 then the page is deleted.
7676 You can pass `false` as argument to prevent page deletion (in this case, you can get it from your document
77- root directory.
78- Don't forget to remove it by hand, then).
77+ root directory. Don't forget to remove it by hand, then).
7978 If you want to change browser path, define it in your configuration :
79+
8080 ` ` ` yaml
8181 # config/packages/test/beelab_test.yaml
8282 beelab_test:
@@ -91,10 +91,8 @@ services:
9191
9292* Assert presence of many selectors
9393
94- ` self::assertSelectorCounts()` method works like native `self::assertSelectorExists()`.
95- For example, you can check for presence of `div.alert-success` using
96- ` self::assertSelectorExists('div.alert-success')` or using `self::assertSelectorCounts(1, 'div.alert-success')`
97- (the latter being more specific, and more flexible).
94+ An old method `self::assertSelectorCounts()` is still available, but deprecated.
95+ You should use the native method ``self::assertSelectorCount()` instead.
9896
9997# ## Authentication-related
10098
@@ -106,6 +104,7 @@ services:
106104 ` self::login('myuser', 'main', 'fos_user.user_provider.username');` .
107105 Another notable service you can use is Symfony's built-in `security.user.provider.concrete.in_memory`.
108106 For basic usage, just pass the username as first argument.
107+ To avoid passing the service every time, you can configure it.
109108
110109 Example of configuration :
111110 ` ` ` yaml
@@ -134,7 +133,7 @@ services:
134133 In forms with more than a field of the same type, use `self::getImageFile('1')`, `self::getImageFile('2')`, etc.
135134 You can also use `self::getFile('0', $data, 'png', 'image/png')` and pass directly your file data.
136135
137- 💡 ** Bonus** The above methods are shortcuts for the `Beelab\TestBundle\File\FileInjector` class, so you
136+ 💡 **Bonus** The above methods are shortcuts for the `Beelab\TestBundle\File\FileInjector` class, so you
138137 can use them in your fixtures, too. Import the class and use `FileInjector::getFile(fixture : true)` etc.
139138 Don't forget to pass the `$fixture` argument.
140139
0 commit comments