@@ -135,36 +135,6 @@ Makes comparison of scalars strict.
135
135
136
136
## PHPUnit ` TestCase `
137
137
138
- ### [ ` RefreshDatabaseIfEmpty ` ] ( ./src/Database/RefreshDatabaseIfEmpty.php ) 💀
139
-
140
- [ include:docblock ] : ./src/Database/RefreshDatabaseIfEmpty.php
141
- [ // ] : # ( start: preprocess/94562f6acfa81b98 )
142
- [ // ] : # ( warning: Generated automatically. Do not edit. )
143
-
144
- The trait is very similar to standard ` \Illuminate\Foundation\Testing\RefreshDatabase ` but there is one
145
- difference: it will refresh the database only if it is empty. This is very
146
- useful for local testing and allow significantly reduce bootstrap time.
147
-
148
- [ // ] : # ( end: preprocess/94562f6acfa81b98 )
149
-
150
- ``` php
151
- <?php declare(strict_types = 1);
152
-
153
- namespace Tests;
154
-
155
- use LastDragon_ru\LaraASP\Testing\Database\RefreshDatabaseIfEmpty;
156
- use LastDragon_ru\LaraASP\Testing\TestCase as BaseTestCase;
157
-
158
- abstract class TestCase extends BaseTestCase {
159
- use CreatesApplication;
160
- use RefreshDatabaseIfEmpty;
161
-
162
- protected function shouldSeed() {
163
- return true;
164
- }
165
- }
166
- ```
167
-
168
138
### [ ` WithTempDirectory ` ] ( ./src/Utils/WithTempDirectory.php )
169
139
170
140
[ include:docblock ] : ./src/Utils/WithTempDirectory.php
@@ -250,9 +220,9 @@ Disable models events during make/create.
250
220
251
221
| Name | Description |
252
222
| -----------------------------------------------------------------------------| ----------------------------------------------------------------|
253
- | [ ` assertThat() ` ] ( ./docs/Assertions/AssertThatResponse .md ) | Asserts that response satisfies given constraint. |
254
- | [ ` assertContentType() ` ] ( ./docs/Assertions/AssertThatResponse .md ) | Asserts that a response has a specified content type. |
255
- | [ ` assertStatusCode() ` ] ( ./docs/Assertions/AssertThatResponse .md ) | Asserts that a response has a specified status code. |
223
+ | [ ` assertThat() ` ] ( ./docs/Assertions/AssertPsrResponse .md ) | Asserts that response satisfies given constraint. |
224
+ | [ ` assertContentType() ` ] ( ./docs/Assertions/AssertPsrResponse .md ) | Asserts that a response has a specified content type. |
225
+ | [ ` assertStatusCode() ` ] ( ./docs/Assertions/AssertPsrResponse .md ) | Asserts that a response has a specified status code. |
256
226
| [ ` assertJsonMatchesSchema() ` ] ( ./docs/Assertions/AssertJsonMatchesSchema.md ) | Asserts that a response contains JSON that matches the schema. |
257
227
| [ ` assertXmlMatchesSchema() ` ] ( ./docs/Assertions/AssertXmlMatchesSchema.md ) | Asserts that a response contains XML that matches the schema. |
258
228
@@ -298,12 +268,6 @@ Asserts that Scout Query equals Scout Query.
298
268
299
269
[ Read more] ( < docs/Assertions/AssertScoutQueryEquals.md > ) .
300
270
301
- ## [ ` assertThatResponse ` 💀] ( < docs/Assertions/AssertThatResponse.md > )
302
-
303
- Asserts that PSR Response satisfies given constraint (we have a lot of built-in [ constraints] ( src/Constraints/Response ) and [ responses] ( src/Responses ) , but, of course, you can create a custom).
304
-
305
- [ Read more] ( < docs/Assertions/AssertThatResponse.md > ) .
306
-
307
271
## [ ` assertXmlMatchesSchema ` ] ( < docs/Assertions/AssertXmlMatchesSchema.md > )
308
272
309
273
Asserts that XML matches schema [ XSD] ( https://en.wikipedia.org/wiki/XML_Schema_(W3C) ) or [ Relax NG] ( https://en.wikipedia.org/wiki/RELAX_NG ) . Validation based on the standard methods of [ ` DOMDocument ` ] ( https://www.php.net/manual/en/class.domdocument.php ) class.
0 commit comments