Skip to content

Commit

Permalink
docs: Small typo in testing/overview.rst
Browse files Browse the repository at this point in the history
Small typo in testing/overview.rst
  • Loading branch information
obozdag authored May 30, 2024
1 parent 19e62ac commit 2ba2c45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user_guide_src/source/testing/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ There are no rules for how test files must be placed. However, we recommend that
you establish placement rules in advance so that you can quickly understand where
the test files are located.

In this document, we will place the test files corresponding to the classes in
the **app** directory in the **tests/app** directory. To test a new library,
In this document, the test files corresponding to the classes in the **app** directory
will be placed in the **tests/app** directory. To test a new library,
**app/Libraries/Foo.php**, you would create a new file at
**tests/app/Libraries/FooTest.php**:

.. literalinclude:: overview/001.php

To test one of your models, **app/Models/UserMode.php**, you might end up with
To test one of your models, **app/Models/UserModel.php**, you might end up with
something like this in **tests/app/Models/UserModelTest.php**:

.. literalinclude:: overview/002.php
Expand Down Expand Up @@ -121,7 +121,7 @@ parent as well so extended test cases do not interfere with staging:
Traits
------

A common way to enhance your tests is by using traits to consolidate staging across different
A common way to enhance your tests is using traits to consolidate staging across different
test cases. ``CIUnitTestCase`` will detect any class traits and look for staging methods
to run named for the trait itself (i.e. `setUp{NameOfTrait}()` and `tearDown{NameOfTrait}()`).

Expand Down

0 comments on commit 2ba2c45

Please sign in to comment.