class Illuminate / Testing / Constraints / NotSoftDeletedInDatabase

NotSoftDeletedInDatabase

Extends

    PHPUnit\...\Constraint

Properties

protected

$show int

Number of records that will be shown in the console in case of failure.

Default: 3
protected

$database Connection

The database connection.

Default: null
protected

$data array

The data that will be used to narrow the search in the database table.

Default: null
protected

$deletedAtColumn string

The name of the column that indicates soft deletion has occurred.

Default: null

Methods

public

__construct ( Connection $database , array $data , string $deletedAtColumn ) : void

Create a new constraint instance.

Parameters

  • $database Connection
  • $data array
  • $deletedAtColumn string
public

matches ( $table ) : bool

Check if the data is found in the given table.

Parameters

  • $table string
public

failureDescription ( $table ) : string

Get the description of the failure.

Parameters

  • $table string
protected

getAdditionalInfo ( $table ) : string

Get additional info about the records found in the database table.

Parameters

  • $table string
public

toString ( ) : string

Get a string representation of the object.