Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Testing

Static Analysis

To run static analysis on the plugin, install PHPStan for Craft CMS and run the following command from the root of your project.

php vendor/bin/phpstan analyse -c vendor/putyourlightson/craft-cloudflare/phpstan.neon  --memory-limit 1G

Easy Coding Standard

To run the Easy Coding Standard on the plugin, install ECS for Craft CMS and run the following command from the root of your project.

php vendor/bin/ecs check -c vendor/putyourlightson/craft-cloudflare/ecs.php

Pest Tests

To run Pest tests, first install Craft Pest core as a dev dependency.

composer require markhuot/craft-pest-core:^2.0.0-rc2 --dev

Then run the following command from the root of your project.

php vendor/bin/pest vendor/putyourlightson/craft-cloudflare/tests/pest --test-directory=vendor/putyourlightson/craft-cloudflare/tests/pest --colors --display-deprecations

Or to run a specific test.

php vendor/bin/pest vendor/putyourlightson/craft-cloudflare/tests/pest --test-directory=vendor/putyourlightson/craft-cloudflare/tests/pest --colors --display-deprecations --filter=MySpecificTest