App下載

詞條

大約有 7,000 項符合查詢結(jié)果 ,庫內(nèi)數(shù)據(jù)總量為 78,250 項。(搜索耗時:0.0047秒)

5471.Laravel 8 介紹

...el 天生就具有測試的基因。事實上,Laravel 默認就支持用 PHPUnit 來做測試,并為你的應用程序配置好了 phpunit.xml 文件??蚣苓€提供了一些便利的輔助函數(shù),讓你可以更直觀的測試你的應用程序。默認情況,你的應用 tests 目錄中...

http://www.o2fo.com/laravel_8/laravel_8-atj53i9j.html

5472.Laravel 8 自定義請求頭

...這使您可以將任何想要的自定義標頭添加到請求中:<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->withHeaders([ 'X-Header' => 'Value', ])->jso...

http://www.o2fo.com/laravel_8/laravel_8-42zt3i9q.html

5473.Laravel 8 Cookies

...個參數(shù),而 withCookies 方法接受一個名稱 / 值對數(shù)組:<?php class ExampleTest extends TestCase { public function testCookies() { $response = $this->withCookie('color', 'blue')->get('/'); $response = $this->withCookies([ 'color' => 'b...

http://www.o2fo.com/laravel_8/laravel_8-o9z43i9r.html

5474.Laravel 8 調(diào)試響應

...dumpHeaders 和 dumpSession 方法可以用來分析和調(diào)試響應:<?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Tests\TestCase; class ExampleTest extends TestCase { /** * 一個基礎(chǔ)的測試實例 *...

http://www.o2fo.com/laravel_8/laravel_8-d5qz3i9s.html

5475.Laravel 8 測試 JSON APIs

...例, 發(fā)送 POST 請求到 /user,并斷言返回的期望數(shù)據(jù):<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->postJson('/user', ['name' => 'Sally'])...

http://www.o2fo.com/laravel_8/laravel_8-4oe53i9u.html

5476.Laravel 8 驗證 JSON 完全匹配

...用返回的 JSON 結(jié)果,你應該使用 assertExactJson 方法:<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->json('POST', '/user', ['name' => 'Sa...

http://www.o2fo.com/laravel_8/laravel_8-pjo13i9v.html

5477.Laravel 8 驗證 JSON 路徑

...路徑上的某些給定數(shù)據(jù),可以使用 assertJsonPath 方法:<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->json('POST', '/user', ['name' => '...

http://www.o2fo.com/laravel_8/laravel_8-vi4s3i9w.html

5478.Laravel 8 測試文件上傳

...合這兩者的功能非常方便地進行頭像上傳表單測試:<?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; use Tests\TestCase;...

http://www.o2fo.com/laravel_8/laravel_8-fykq3i9x.html

5479.Laravel 8 使用其他瀏覽器

...瀏覽器來進行測試。如果要這么做,打開 tests/DuskTestCase.php 文件,這個是應用測試用例的基類。在這個文件中,你可以移除對 startChromeDriver 方法的調(diào)用。這樣 Dusk 就不會自動啟動 ChromeDriver 了。/** * 準備執(zhí)行 Dusk 測試。 * * @before...

http://www.o2fo.com/laravel_8/laravel_8-mjhn3ibn.html

5480.Laravel 8 創(chuàng)建測試

要創(chuàng)建一個 Dusk 測試,可以使用 dusk:make 命令。創(chuàng)建的測試將會被放在 tests/Browser 目錄中:php artisan dusk:make LoginTest

http://www.o2fo.com/laravel_8/laravel_8-k62j3ibp.html

抱歉,暫時沒有相關(guān)的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關(guān)的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關(guān)的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

5471.Laravel 8 介紹

...el 天生就具有測試的基因。事實上,Laravel 默認就支持用 PHPUnit 來做測試,并為你的應用程序配置好了 phpunit.xml 文件。框架還提供了一些便利的輔助函數(shù),讓你可以更直觀的測試你的應用程序。默認情況,你的應用 tests 目錄中...

http://www.o2fo.com/laravel_8/laravel_8-atj53i9j.html

5472.Laravel 8 自定義請求頭

...這使您可以將任何想要的自定義標頭添加到請求中:<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->withHeaders([ 'X-Header' => 'Value', ])->jso...

http://www.o2fo.com/laravel_8/laravel_8-42zt3i9q.html

5473.Laravel 8 Cookies

...個參數(shù),而 withCookies 方法接受一個名稱 / 值對數(shù)組:<?php class ExampleTest extends TestCase { public function testCookies() { $response = $this->withCookie('color', 'blue')->get('/'); $response = $this->withCookies([ 'color' => 'b...

http://www.o2fo.com/laravel_8/laravel_8-o9z43i9r.html

5474.Laravel 8 調(diào)試響應

...dumpHeaders 和 dumpSession 方法可以用來分析和調(diào)試響應:<?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Tests\TestCase; class ExampleTest extends TestCase { /** * 一個基礎(chǔ)的測試實例 *...

http://www.o2fo.com/laravel_8/laravel_8-d5qz3i9s.html

5475.Laravel 8 測試 JSON APIs

...例, 發(fā)送 POST 請求到 /user,并斷言返回的期望數(shù)據(jù):<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->postJson('/user', ['name' => 'Sally'])...

http://www.o2fo.com/laravel_8/laravel_8-4oe53i9u.html

5476.Laravel 8 驗證 JSON 完全匹配

...用返回的 JSON 結(jié)果,你應該使用 assertExactJson 方法:<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->json('POST', '/user', ['name' => 'Sa...

http://www.o2fo.com/laravel_8/laravel_8-pjo13i9v.html

5477.Laravel 8 驗證 JSON 路徑

...路徑上的某些給定數(shù)據(jù),可以使用 assertJsonPath 方法:<?php class ExampleTest extends TestCase { /** * 一個基本的功能測試示例 * * @return void */ public function testBasicExample() { $response = $this->json('POST', '/user', ['name' => '...

http://www.o2fo.com/laravel_8/laravel_8-vi4s3i9w.html

5478.Laravel 8 測試文件上傳

...合這兩者的功能非常方便地進行頭像上傳表單測試:<?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; use Tests\TestCase;...

http://www.o2fo.com/laravel_8/laravel_8-fykq3i9x.html

5479.Laravel 8 使用其他瀏覽器

...瀏覽器來進行測試。如果要這么做,打開 tests/DuskTestCase.php 文件,這個是應用測試用例的基類。在這個文件中,你可以移除對 startChromeDriver 方法的調(diào)用。這樣 Dusk 就不會自動啟動 ChromeDriver 了。/** * 準備執(zhí)行 Dusk 測試。 * * @before...

http://www.o2fo.com/laravel_8/laravel_8-mjhn3ibn.html

5480.Laravel 8 創(chuàng)建測試

要創(chuàng)建一個 Dusk 測試,可以使用 dusk:make 命令。創(chuàng)建的測試將會被放在 tests/Browser 目錄中:php artisan dusk:make LoginTest

http://www.o2fo.com/laravel_8/laravel_8-k62j3ibp.html

抱歉,暫時沒有相關(guān)的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程