App下載

詞條

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

5471.Laravel 8 介紹

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

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

5472.Laravel 8 自定義請(qǐng)求頭

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

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

5473.Laravel 8 Cookies

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

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

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

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

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

5475.Laravel 8 測(cè)試 JSON APIs

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

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

5476.Laravel 8 驗(yàn)證 JSON 完全匹配

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

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

5477.Laravel 8 驗(yàn)證 JSON 路徑

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

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

5478.Laravel 8 測(cè)試文件上傳

...合這兩者的功能非常方便地進(jìn)行頭像上傳表單測(cè)試:<?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://m.o2fo.com/laravel_8/laravel_8-fykq3i9x.html

5479.Laravel 8 使用其他瀏覽器

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

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

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

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

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

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

w3cschool 建議您:

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

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

w3cschool 建議您:

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

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

w3cschool 建議您:

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

5471.Laravel 8 介紹

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

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

5472.Laravel 8 自定義請(qǐng)求頭

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

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

5473.Laravel 8 Cookies

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

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

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

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

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

5475.Laravel 8 測(cè)試 JSON APIs

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

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

5476.Laravel 8 驗(yàn)證 JSON 完全匹配

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

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

5477.Laravel 8 驗(yàn)證 JSON 路徑

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

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

5478.Laravel 8 測(cè)試文件上傳

...合這兩者的功能非常方便地進(jìn)行頭像上傳表單測(cè)試:<?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://m.o2fo.com/laravel_8/laravel_8-fykq3i9x.html

5479.Laravel 8 使用其他瀏覽器

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

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

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

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

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

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

w3cschool 建議您:

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

熱門課程