TestClassDatabaseChanges
extends WP_UnitTestCase
in package
Tags
Table of Contents
- NUM_NEW_TABLES = 9
- amount of tables created
- $_createQueries : array<string|int, string>
- $_dropQueries : array<string|int, string>
- $_fields : array<string|int, string>
- $_pDbChanges : DatabaseChanges
- $_pWPDBMock : wpdb
- $_pWpOption : WPOptionWrapperTest
- prepare() : mixed
- saveCreateQuery() : string
- saveDropQuery() : string
- testDeleteCommentFieldApplicantSearchForm() : mixed
- testDeleteMessageFieldApplicantSearchForm() : mixed
- testInstall() : array<string|int, mixed>
- testInstallMigrationsDataSimilarEstates() : array<string|int, mixed>
- testMaxVersion() : mixed
- testUninstall() : mixed
Constants
NUM_NEW_TABLES
amount of tables created
public
mixed
NUM_NEW_TABLES
= 9
Properties
$_createQueries
private
array<string|int, string>
$_createQueries
= []
$_dropQueries
private
array<string|int, string>
$_dropQueries
= []
$_fields
private
array<string|int, string>
$_fields
= ['Field 1', 'Field 2', 'Field 3']
$_pDbChanges
private
DatabaseChanges
$_pDbChanges
$_pWPDBMock
private
wpdb
$_pWPDBMock
= null
$_pWpOption
private
WPOptionWrapperTest
$_pWpOption
Methods
prepare()
public
prepare() : mixed
Tags
Return values
mixed —saveCreateQuery()
public
saveCreateQuery(string $query) : string
Parameters
- $query : string
Return values
string —saveDropQuery()
public
saveDropQuery(string $query) : string
Parameters
- $query : string
Return values
string —testDeleteCommentFieldApplicantSearchForm()
public
testDeleteCommentFieldApplicantSearchForm() : mixed
Tags
Return values
mixed —testDeleteMessageFieldApplicantSearchForm()
public
testDeleteMessageFieldApplicantSearchForm() : mixed
Tags
Return values
mixed —testInstall()
public
testInstall() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —testInstallMigrationsDataSimilarEstates()
public
testInstallMigrationsDataSimilarEstates() : array<string|int, mixed>
Return values
array<string|int, mixed> —testMaxVersion()
public
testMaxVersion() : mixed
Return values
mixed —testUninstall()
public
testUninstall(array<string|int, mixed> $createQueries) : mixed
Parameters
- $createQueries : array<string|int, mixed>
-
from testInstall test.