Skip to content

Latest commit

 

History

History
127 lines (63 loc) · 3.37 KB

rulesFirstRun.md

File metadata and controls

127 lines (63 loc) · 3.37 KB

16 Rules Overview

AddResponseAsParam

Add Response parameter to method that needs it.


AddResponseAsParamWhenCaller

Add Response argument when method has it as param


AddTestAttributeForTests

Add test param to public methods in files that end with Cest.php


ChainResponseCodes

Chain asserts to requests


ExampleToTestWithDocs

Move from example to phpunit attributes


RefactorDatabaseCalls


RefactorGetResponse

Change access to response body


RefactorGrabFromDatabase


RefactorJsonFilesToArray

Covert Json files to array when sending requests


RefactorMockAccess

Refactor made request retrieving from phiremock to HttpOutgoingRequestRetriever trait


RefactorMockCreation

Refactor mock access from Phiremock to HttpStatelessMock trait


RefactorToResponseMethods

Replace json path access to equivalent in Laravel feature tests


RenameApiTesterMethod

Replace codeception methods to equivalents in Laravel Feature tests


ReplaceApiTesterForOutsideMethodCalls

Replace Codeception Tester passing to other classes with $this


ResponseCodesToAsserts

Improve asserts, by changing status code asserts to inbuilt methods


StaticStatusCodeToInt

Replace Codeception HttpCode with int