CakePHP Cookbook Documentation 5.xRunning Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Loading Fixtures in your Test Cases Fixture Factories Loading Routes in Tests Creating Routes in Tests Loading Plugins in Tests Testing Table Classes Creating a Test Method Mocking Model Methods Controller Testing a JSON Responding Controller Testing with file uploads Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Mocking Injected Dependencies0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Callbacks Fixtures Test Connections PHPUnit Configuration Creating Schema in Tests Creating Loading Fixtures in your Test Cases Fixture Factories Loading Routes in Tests Creating Routes in Tests Loading Plugins in Tests Testing Table Classes Creating a Test Method Mocking Model Methods Controller Testing a JSON Responding Controller Testing with file uploads Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Mocking Injected Dependencies0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.xCase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687 Testing . . . . . . . . . . . . 708 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709 Generating Tests with Bake . . . . . . . . . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790 Testing . . . . . . . . . . . . 812 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 813 Generating Tests with Bake . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
Database Setup Checking the Test Setup Test Case Conventions Creating Your First Test Case Running Tests Filtering Test Cases Generating Code Coverage Combining Test Suites for Plugins Test Case Lifecycle Testing Flash Messages Testing a JSON Responding Controller Disabling Error Handling Middleware in Tests Assertion methods Comparing test results to a file Console Integration Testing Testing Views Testing Testing Email Creating Test Suites Creating Tests for Plugins Generating Tests with Bake Integration with Jenkins Create a Job Add Test Database Config Add your Tests Run a Build Validation Creating Validators0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 2.x
Test Case Running Tests Test Case Lifecycle Callbacks Fixtures Testing Models Testing Controllers Testing Views Testing Components Testing Helpers Creating Test Suites Creating Tests for Plugins Integration 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib' ); Note If you are planning to create unit tests for your application you’ll also need to make the above change to webroot/test.php If you’re installing $this->controller->response->expects($this->once())- >method('header'); // ... } Additionally, you can run tests from the command line more easily, as you can use mocks to avoid the ‘headers sent’ errors that can0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 3.x
Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791 Running Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820 Creating Tests for Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821 Generating Tests with Bake . . . . . . . . . . . . . with CakePHP. They can serve as practical examples for function and data member usage for a class. tests/TestCase/ Additional Reading 5 CakePHP Cookbook Documentation, Release 3.10 The IRC Channel IRC0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 2.x
'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib' ); Note: If you are planning to create unit tests for your application you’ll also need to make the above change to webroot/test.php If you’re installing $this->controller->response->expects($this->once())->method('header'); // ... } Additionally, you can run tests from the command line more easily, as you can use mocks to avoid the ‘headers sent’ errors that can LOGS Path to the logs directory. constant ROOT Path to the root directory. constant TESTS Path to the tests directory. constant TMP Path to the temporary files directory. 336 Chapter 7. Core Libraries0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













