master

laravel/framework

Last updated at: 29/12/2023 09:25

ParallelTesting.php

TLDR

This file provides a facade for resolving and setting up parallel testing options in Laravel.

Methods

resolveOptionsUsing

Sets a resolver function for resolving parallel testing options.

resolveTokenUsing

Sets a resolver function for resolving parallel testing token.

setUpProcess

Sets up a callable function to be run before each parallel testing process.

setUpTestCase

Sets up a callable function to be run before each test case.

setUpTestDatabase

Sets up a callable function to be run before setting up the test database.

tearDownProcess

Sets up a callable function to be run after each parallel testing process.

tearDownTestCase

Sets up a callable function to be run after each test case.

callSetUpProcessCallbacks

Calls the setup process callbacks.

callSetUpTestCaseCallbacks

Calls the setup test case callbacks.

callSetUpTestDatabaseCallbacks

Calls the setup test database callbacks.

callTearDownProcessCallbacks

Calls the teardown process callbacks.

callTearDownTestCaseCallbacks

Calls the teardown test case callbacks.

option

Retrieves the value of a parallel testing option.

token

Retrieves the parallel testing token.

Classes

There are no classes defined in this file.

<?php

namespace Illuminate\Support\Facades;

/**
 * @method static void resolveOptionsUsing(\Closure|null $resolver)
 * @method static void resolveTokenUsing(\Closure|null $resolver)
 * @method static void setUpProcess(callable $callback)
 * @method static void setUpTestCase(callable $callback)
 * @method static void setUpTestDatabase(callable $callback)
 * @method static void tearDownProcess(callable $callback)
 * @method static void tearDownTestCase(callable $callback)
 * @method static void callSetUpProcessCallbacks()
 * @method static void callSetUpTestCaseCallbacks(\Illuminate\Foundation\Testing\TestCase $testCase)
 * @method static void callSetUpTestDatabaseCallbacks(string $database)
 * @method static void callTearDownProcessCallbacks()
 * @method static void callTearDownTestCaseCallbacks(\Illuminate\Foundation\Testing\TestCase $testCase)
 * @method static mixed option(string $option)
 * @method static string|false token()
 *
 * @see \Illuminate\Testing\ParallelTesting
 */
class ParallelTesting extends Facade
{
    /**
     * Get the registered name of the component.
     *
     * @return string
     */
    protected static function getFacadeAccessor()
    {
        return \Illuminate\Testing\ParallelTesting::class;
    }
}