Skip to content

Commit 90ebf12

Browse files
GromNaNjmikola
authored andcommitted
Add tests to doc examples (#2775)
1 parent 642bd22 commit 90ebf12

File tree

4 files changed

+274
-203
lines changed

4 files changed

+274
-203
lines changed

docs/eloquent-models/relationships.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ button to see the data created by running the code:
9595

9696
.. io-code-block::
9797

98-
.. input:: /includes/eloquent-models/relationships/RelationshipController.php
98+
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
9999
:language: php
100100
:dedent:
101101
:start-after: begin one-to-one save
@@ -125,7 +125,7 @@ button to see the data created by running the code:
125125
The following sample code shows how to access the related models by using
126126
the dynamic properties as defined in the example classes:
127127

128-
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
128+
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
129129
:language: php
130130
:dedent:
131131
:start-after: begin planet orbit dynamic property example
@@ -180,7 +180,7 @@ button to see the data created by running the code:
180180

181181
.. io-code-block::
182182

183-
.. input:: /includes/eloquent-models/relationships/RelationshipController.php
183+
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
184184
:language: php
185185
:dedent:
186186
:start-after: begin one-to-many save
@@ -219,7 +219,7 @@ button to see the data created by running the code:
219219
The following sample code shows how to access the related models by using
220220
the dynamic properties as defined in the example classes.
221221

222-
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
222+
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
223223
:language: php
224224
:dedent:
225225
:start-after: begin planet moons dynamic property example
@@ -280,7 +280,7 @@ button to see the data created by running the code:
280280

281281
.. io-code-block::
282282

283-
.. input:: /includes/eloquent-models/relationships/RelationshipController.php
283+
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
284284
:language: php
285285
:dedent:
286286
:start-after: begin many-to-many save
@@ -345,7 +345,7 @@ button to see the data created by running the code:
345345
The following sample code shows how to access the related models by using
346346
the dynamic properties as defined in the example classes.
347347

348-
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipController.php
348+
.. literalinclude:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
349349
:language: php
350350
:dedent:
351351
:start-after: begin many-to-many dynamic property example
@@ -410,7 +410,7 @@ running the code:
410410

411411
.. io-code-block::
412412

413-
.. input:: /includes/eloquent-models/relationships/RelationshipController.php
413+
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
414414
:language: php
415415
:dedent:
416416
:start-after: begin embedsMany save
@@ -501,7 +501,7 @@ to see the data created by running the code:
501501

502502
.. io-code-block::
503503

504-
.. input:: /includes/eloquent-models/relationships/RelationshipController.php
504+
.. input:: /includes/eloquent-models/relationships/RelationshipsExamplesTest.php
505505
:language: php
506506
:dedent:
507507
:start-after: begin cross-database save

docs/includes/eloquent-models/relationships/RelationshipController.php

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)