Laravel 5.0 Documentation
Extending Blade xxi. Unit Testing i. Introduction ii. Defining & Running Tests iii. Test Environment iv. Calling Routes From Tests v. Mocking Facades vi. Framework Assertions vii. Helper Methods viii cinch to get started using Gulp to compile your Less, Sass, and CoffeeScript. It can even run your tests for you! For more information on Elixir, check out the full documentation. Laravel Socialite is public directory. Be sure to keep the 5.0 version of index.php . Move your tests from app/tests to the new tests directory. Copy in any other files in your project. For example, .scrutinizer0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelCommons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks Database Transactions in Unit Test Laravel allows database to rollback all the change during the tests. For testing multiple database connections, you need to set $connectionsToTransact properties use } public function down() { Schema::drop('first_table'); } } At the end to run all of your migrations classes you can run the artisan command: php artisan migrate This will0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 3.2 Documentation.......... 74 Running Tests ............................................................................................................. 74 Calling Controllers From Tests ........................ .............................................................................. 120 x Unit Tests (More Information) .............................................................................. date, too! Unit-Testing is an important part of Laravel. Laravel itself sports hundreds of tests to help ensure that new changes don't unexpectedly break anything. This is one of the reasons why0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 6.0 中文文档(应用根目录下的 public 目录)目录下生成一个软连 接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 测试目录 tests 目录包含自动化测试文件,其中默认已经提供了一个开箱即用 的 PHPUnit 示例;每一个测试类都要以 Test 开头,你可以通 过 phpunit 或 php vendor/bin/phpunit customize ["setextradata", :id, "VBoxInternal2/S haredFoldersEnableSymlinksCreate/v-root", "1"] end 轻量级开发环境:Valet 简介 Valet 是为 Mac 打造的极简 Laravel 开发环境,没有 Vagrant,没 有虚拟机,也无需配置 /etc/hosts 文件,还可以使用本地隧道公开 前缀后的接 口或类名在服务容器中解析。在测试的时候,我们可以使用 Laravel 自带的门面测试辅助函数来模拟这个方法调用: Tests\Feature; use App\Podcast; use Tests\TestCase; use Facades\App\Contracts\Publisher; use Illuminate\Foundation\Tes0 码力 | 1442 页 | 14.66 MB | 1 年前3
The Laravel Handbook
in the right place with the right name will do something specific. 3. Blade The view files that end with .blade.php and are Blade templates. Blade is a server-side templating language. In its basic clean up the routes a bit, add a more beautiful design. I have this list of views we used in our tests: 37 Remove test.blade.php and welcome.blade.php . In routes/web.php we’re going to show the running npm install . We need to update our Deploy Script from the App tab, adding this at the end: npm install npm run build 100 Then click Update and Deploy Now. Now it works! 101 Also try0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档public (应 用根目录下的 public 目录)目录下生成一个软连接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试文件,其中默认已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] end Valet 简介 Valet 是为 Mac 打造的极简 Laravel 开发环境,没有 Vagrant,没有虚拟机,也无需配置 /etc/hosts 文件,还可以使用本地隧道公开分享你的站 前缀后的接口或类名在服务容器中解析。在测试的时候,我们可以使用 Laravel 自带的门面 测试辅助函数来模拟这个方法调用: Tests\Feature; use App\Podcast; use Tests\TestCase; use Facades\App\Contracts\Publisher; use Illuminate\Foundation\Te0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档createPlainMatcher 方法已经从 Blade 编译器中移 除,可以使用新的 directive 方法来为 5.1 版的 Blade 创建自定义的指令。查阅扩展 Blade 文档了解详情。 测试 在 tests/TestCase.php 文件中新增 protected 属性$baseUrl: protected $baseUrl = 'http://localhost'; 翻译文件 用于为 vendor Laravel 学院(LaravelAcademy.org)提供 59 使用的文件,framework 目录用于存放框架生成的文件和缓存,最后,logs 目录包含应用的 日志文件; tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例; vendor 目录包含 Composer 依赖; 3、App 目录 应用的核心代码位于 app 目录下,默认情况下,该目录位于命名空间 console.log('Server is running!');}); function handler(req, res) { res.writeHead(200); res.end('');} io.on('connection', function(socket) { // }); redis.psubscribe('*', function(err0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档目录包含 应用的日志文件; 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 71 tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例; vendor 目录包含 Composer 依赖; 3、App 目录 应用的核心代码位于 app 目录下,默认情况下,该目录位于命名空间 console.log('Server is running!');}); function handler(req, res) { res.writeHead(200); res.end('');} io.on('connection', function(socket) { // }); redis.psubscribe('*', function(err 植根于测试,实际上,内置使用 PHPUnit 对测试提供支持是即开即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的辅助方法允许你对应用进行 富有表现力的测试。 tests 目录中提供了一个 ExampleTest.php 文件,安装完新的 Laravel 应用后,只需简单 在命令行运行 phpunit 来运行测试。 1.1 测试环境 运行测试的时候,Laravel0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档访问的目的,你还需要在 public 目录下生成一个软连接 storage 指向这个目录。你可以通过 php artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要 以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit ->thursdays(); 每个星期四运行任务 ->fridays(); 每个星期五运行任务 ->saturdays(); 每个星期六运行任务 ->between($start, $end); 基于特定时间段运行任务 ->when(Closure); 基于特定测试运行任务 介于时间的约束条件 between 方法用于限定一天中特定时间段的任务执行: $sch 植根于测试,实际上,内置使用 PHPUnit 对测试提供支持是即开即用的,并且 phpunit.xml 文件已经为应用设置好了。框架还提供了方便的辅助方法允许你对应用进行富有表现力的测试。 tests 目录中提供了一个 ExampleTest.php 文件,安装完新的 Laravel 应用后,只需简单在命令 本文档由 Laravel 学院(LaravelAcademy.org)提供0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》 10. Rwdorg/blog/archives/2010/09/combining_meta.html 24https://csswizardry.com/2013/01/front-end-performance-for-web-designers-and-front-end-developers/ 25https://24ways.org/2014/making-sites-more-responsive-responsibly/0 码力 | 7 页 | 76.36 KB | 1 年前3
共 15 条
- 1
- 2













