Skip to content

Commit b196d4a

Browse files
committed
docs: fix text decoration
1 parent f47f3f6 commit b196d4a

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

user_guide_src/source/testing/response.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ a response status code in the 200 or 300's. An empty body is not considered vali
5050
assertOK()
5151
----------
5252

53-
This assertion simply uses the **isOK()** method to test a response. **assertNotOK** is the inverse of this assertion.
53+
This assertion simply uses the ``isOK()`` method to test a response. ``assertNotOK()`` is the inverse of this assertion.
5454

5555
.. literalinclude:: response/005.php
5656

@@ -64,7 +64,7 @@ Returns a boolean true/false based on whether the response is a redirected respo
6464
assertRedirect()
6565
----------------
6666

67-
Asserts that the Response is an instance of RedirectResponse. **assertNotRedirect** is the inverse of this assertion.
67+
Asserts that the Response is an instance of RedirectResponse. ``assertNotRedirect()`` is the inverse of this assertion.
6868

6969
.. literalinclude:: response/007.php
7070

@@ -114,15 +114,15 @@ Header Assertions
114114
assertHeader(string $key, $value = null)
115115
----------------------------------------
116116

117-
Asserts that a header named **$key** exists in the response. If **$value** is not empty, will also assert that
117+
Asserts that a header named ``$key`` exists in the response. If ``$value`` is not empty, will also assert that
118118
the values match.
119119

120120
.. literalinclude:: response/013.php
121121

122122
assertHeaderMissing(string $key)
123123
--------------------------------
124124

125-
Asserts that a header name **$key** does not exist in the response.
125+
Asserts that a header name ``$key`` does not exist in the response.
126126

127127
.. literalinclude:: response/014.php
128128

@@ -132,22 +132,22 @@ Cookie Assertions
132132
assertCookie(string $key, $value = null, string $prefix = '')
133133
-------------------------------------------------------------
134134

135-
Asserts that a cookie named **$key** exists in the response. If **$value** is not empty, will also assert that
135+
Asserts that a cookie named ``$key`` exists in the response. If ``$value`` is not empty, will also assert that
136136
the values match. You can set the cookie prefix, if needed, by passing it in as the third parameter.
137137

138138
.. literalinclude:: response/015.php
139139

140140
assertCookieMissing(string $key)
141141
--------------------------------
142142

143-
Asserts that a cookie named **$key** does not exist in the response.
143+
Asserts that a cookie named ``$key`` does not exist in the response.
144144

145145
.. literalinclude:: response/016.php
146146

147147
assertCookieExpired(string $key, string $prefix = '')
148148
-----------------------------------------------------
149149

150-
Asserts that a cookie named **$key** exists, but has expired. You can set the cookie prefix, if needed, by passing it
150+
Asserts that a cookie named ``$key`` exists, but has expired. You can set the cookie prefix, if needed, by passing it
151151
in as the second parameter.
152152

153153
.. literalinclude:: response/017.php
@@ -158,44 +158,44 @@ DOM Helpers
158158
The response you get back contains a number of helper methods to inspect the HTML output within the response. These
159159
are useful for using within assertions in your tests.
160160

161-
The **see()** method checks the text on the page to see if it exists either by itself, or more specifically within
162161
see()
163162
-----
164163

164+
The ``see()`` method checks the text on the page to see if it exists either by itself, or more specifically within
165165
a tag, as specified by type, class, or id:
166166

167167
.. literalinclude:: response/018.php
168168

169-
The **dontSee()** method is the exact opposite:
169+
The ``dontSee()`` method is the exact opposite:
170170

171171
.. literalinclude:: response/019.php
172172

173-
The **seeElement()** and **dontSeeElement()** are very similar to the previous methods, but do not look at the
174173
seeElement()
175174
------------
176175

176+
The ``seeElement()`` and ``dontSeeElement()`` are very similar to the previous methods, but do not look at the
177177
values of the elements. Instead, they simply check that the elements exist on the page:
178178

179179
.. literalinclude:: response/020.php
180180

181-
You can use **seeLink()** to ensure that a link appears on the page with the specified text:
182181
seeLink()
183182
---------
184183

184+
You can use ``seeLink()`` to ensure that a link appears on the page with the specified text:
185185

186186
.. literalinclude:: response/021.php
187187

188-
The **seeInField()** method checks for any input tags exist with the name and value:
189188
seeInField()
190189
------------
191190

191+
The ``seeInField()`` method checks for any input tags exist with the name and value:
192192

193193
.. literalinclude:: response/022.php
194194

195-
Finally, you can check if a checkbox exists and is checked with the **seeCheckboxIsChecked()** method:
196195
seeCheckboxIsChecked()
197196
----------------------
198197

198+
Finally, you can check if a checkbox exists and is checked with the ``seeCheckboxIsChecked()`` method:
199199

200200
.. literalinclude:: response/023.php
201201

@@ -216,29 +216,29 @@ a tag, as specified by type, class, or id:
216216
assertDontSee(string $search = null, string $element = null)
217217
------------------------------------------------------------
218218

219-
Asserts the exact opposite of the **assertSee()** method:
219+
Asserts the exact opposite of the ``assertSee()`` method:
220220

221221
.. literalinclude:: response/025.php
222222

223223
assertSeeElement(string $search)
224224
--------------------------------
225225

226-
Similar to **assertSee()**, however this only checks for an existing element. It does not check for specific text:
226+
Similar to ``assertSee()``, however this only checks for an existing element. It does not check for specific text:
227227

228228
.. literalinclude:: response/026.php
229229

230230
assertDontSeeElement(string $search)
231231
------------------------------------
232232

233-
Similar to **assertSee()**, however this only checks for an existing element that is missing. It does not check for
233+
Similar to ``assertSee()``, however this only checks for an existing element that is missing. It does not check for
234234
specific text:
235235

236236
.. literalinclude:: response/027.php
237237

238238
assertSeeLink(string $text, string $details = null)
239239
---------------------------------------------------
240240

241-
Asserts that an anchor tag is found with matching **$text** as the body of the tag:
241+
Asserts that an anchor tag is found with matching ``$text`` as the body of the tag:
242242

243243
.. literalinclude:: response/028.php
244244

@@ -278,7 +278,7 @@ Asserts that $fragment is found within the JSON response. It does not need to ma
278278
assertJSONExact($test)
279279
----------------------
280280

281-
Similar to **assertJSONFragment()**, but checks the entire JSON response to ensure exact matches.
281+
Similar to ``assertJSONFragment()``, but checks the entire JSON response to ensure exact matches.
282282

283283
Working With XML
284284
================

0 commit comments

Comments
 (0)