Skip to content

CustomMetadataTest

ImageKit.io edited this page Jul 10, 2022 · 2 revisions
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!

ImageKit\Tests\ImageKit\Manage\CustomMetadataTest

Implements:

Countable, PHPUnit\Framework\Test, PHPUnit\Framework\SelfDescribing, PHPUnit\Framework\Reorderable

Extend:

PHPUnit\Framework\TestCase

Methods

NameDescription
testCreateFields
testCreateFieldsInvalidRequest
testCreateFieldsWithEmptyArrayParameter
testCreateFieldsWithMissingLabel
testCreateFieldsWithMissingName
testCreateFieldsWithMissingSchema
testCreateFieldsWithMissingSchemaType
testCreateFieldsWithNonArrayParameter
testDeleteFields
testDeleteFieldsWithMissingCustomMetadataFieldId
testGetFields
testGetFieldsWithInvalidIncludeDeleted
testGetFieldsWithoutIncludeDeleted
testUpdateFields
testUpdateFieldsInvalidRequest
testUpdateFieldsWithEmptyArrayBodyParameter
testUpdateFieldsWithMissingBody
testUpdateFieldsWithMissingCustomMetadataFieldId
testUpdateFieldsWithMissingLabel
testUpdateFieldsWithMissingSchema
testUpdateFieldsWithMissingSchemaType
testUpdateFieldsWithNonArrayBodyParameter

Inherited methods

NameDescription
__construct-
addToAssertionCount-
addWarning-
anyReturns a matcher that matches when the method is executed
zero or more times.
anything-
arrayHasKey-
assertArrayHasKeyAsserts that an array has a specified key.
assertArrayNotHasKeyAsserts that an array does not have a specified key.
assertClassHasAttributeAsserts that a class has a specified attribute.
assertClassHasStaticAttributeAsserts that a class has a specified static attribute.
assertClassNotHasAttributeAsserts that a class does not have a specified attribute.
assertClassNotHasStaticAttributeAsserts that a class does not have a specified static attribute.
assertContainsAsserts that a haystack contains a needle.
assertContainsEquals-
assertContainsOnlyAsserts that a haystack contains only values of a given type.
assertContainsOnlyInstancesOfAsserts that a haystack contains only instances of a given class name.
assertCountAsserts the number of elements of an array, Countable or Traversable.
assertDirectoryDoesNotExistAsserts that a directory does not exist.
assertDirectoryExistsAsserts that a directory exists.
assertDirectoryIsNotReadableAsserts that a directory exists and is not readable.
assertDirectoryIsNotWritableAsserts that a directory exists and is not writable.
assertDirectoryIsReadableAsserts that a directory exists and is readable.
assertDirectoryIsWritableAsserts that a directory exists and is writable.
assertDirectoryNotExistsAsserts that a directory does not exist.
assertDirectoryNotIsReadableAsserts that a directory exists and is not readable.
assertDirectoryNotIsWritableAsserts that a directory exists and is not writable.
assertDoesNotMatchRegularExpressionAsserts that a string does not match a given regular expression.
assertEmptyAsserts that a variable is empty.
assertEqualXMLStructureAsserts that a hierarchy of DOMElements matches.
assertEqualsAsserts that two variables are equal.
assertEqualsCanonicalizingAsserts that two variables are equal (canonicalizing).
assertEqualsIgnoringCaseAsserts that two variables are equal (ignoring case).
assertEqualsWithDeltaAsserts that two variables are equal (with delta).
assertFalseAsserts that a condition is false.
assertFileDoesNotExistAsserts that a file does not exist.
assertFileEqualsAsserts that the contents of one file is equal to the contents of another
file.
assertFileEqualsCanonicalizingAsserts that the contents of one file is equal to the contents of another
file (canonicalizing).
assertFileEqualsIgnoringCaseAsserts that the contents of one file is equal to the contents of another
file (ignoring case).
assertFileExistsAsserts that a file exists.
assertFileIsNotReadableAsserts that a file exists and is not readable.
assertFileIsNotWritableAsserts that a file exists and is not writable.
assertFileIsReadableAsserts that a file exists and is readable.
assertFileIsWritableAsserts that a file exists and is writable.
assertFileNotEqualsAsserts that the contents of one file is not equal to the contents of
another file.
assertFileNotEqualsCanonicalizingAsserts that the contents of one file is not equal to the contents of another
file (canonicalizing).
assertFileNotEqualsIgnoringCaseAsserts that the contents of one file is not equal to the contents of another
file (ignoring case).
assertFileNotExistsAsserts that a file does not exist.
assertFileNotIsReadableAsserts that a file exists and is not readable.
assertFileNotIsWritableAsserts that a file exists and is not writable.
assertFiniteAsserts that a variable is finite.
assertGreaterThanAsserts that a value is greater than another value.
assertGreaterThanOrEqualAsserts that a value is greater than or equal to another value.
assertInfiniteAsserts that a variable is infinite.
assertInstanceOfAsserts that a variable is of a given type.
assertIsArrayAsserts that a variable is of type array.
assertIsBoolAsserts that a variable is of type bool.
assertIsCallableAsserts that a variable is of type callable.
assertIsClosedResourceAsserts that a variable is of type resource and is closed.
assertIsFloatAsserts that a variable is of type float.
assertIsIntAsserts that a variable is of type int.
assertIsIterableAsserts that a variable is of type iterable.
assertIsNotArrayAsserts that a variable is not of type array.
assertIsNotBoolAsserts that a variable is not of type bool.
assertIsNotCallableAsserts that a variable is not of type callable.
assertIsNotClosedResourceAsserts that a variable is not of type resource.
assertIsNotFloatAsserts that a variable is not of type float.
assertIsNotIntAsserts that a variable is not of type int.
assertIsNotIterableAsserts that a variable is not of type iterable.
assertIsNotNumericAsserts that a variable is not of type numeric.
assertIsNotObjectAsserts that a variable is not of type object.
assertIsNotReadableAsserts that a file/dir exists and is not readable.
assertIsNotResourceAsserts that a variable is not of type resource.
assertIsNotScalarAsserts that a variable is not of type scalar.
assertIsNotStringAsserts that a variable is not of type string.
assertIsNotWritableAsserts that a file/dir exists and is not writable.
assertIsNumericAsserts that a variable is of type numeric.
assertIsObjectAsserts that a variable is of type object.
assertIsReadableAsserts that a file/dir is readable.
assertIsResourceAsserts that a variable is of type resource.
assertIsScalarAsserts that a variable is of type scalar.
assertIsStringAsserts that a variable is of type string.
assertIsWritableAsserts that a file/dir exists and is writable.
assertJsonAsserts that a string is a valid JSON string.
assertJsonFileEqualsJsonFileAsserts that two JSON files are equal.
assertJsonFileNotEqualsJsonFileAsserts that two JSON files are not equal.
assertJsonStringEqualsJsonFileAsserts that the generated JSON encoded object and the content of the given file are equal.
assertJsonStringEqualsJsonStringAsserts that two given JSON encoded objects or arrays are equal.
assertJsonStringNotEqualsJsonFileAsserts that the generated JSON encoded object and the content of the given file are not equal.
assertJsonStringNotEqualsJsonStringAsserts that two given JSON encoded objects or arrays are not equal.
assertLessThanAsserts that a value is smaller than another value.
assertLessThanOrEqualAsserts that a value is smaller than or equal to another value.
assertMatchesRegularExpressionAsserts that a string matches a given regular expression.
assertNanAsserts that a variable is nan.
assertNotContainsAsserts that a haystack does not contain a needle.
assertNotContainsEquals-
assertNotContainsOnlyAsserts that a haystack does not contain only values of a given type.
assertNotCountAsserts the number of elements of an array, Countable or Traversable.
assertNotEmptyAsserts that a variable is not empty.
assertNotEqualsAsserts that two variables are not equal.
assertNotEqualsCanonicalizingAsserts that two variables are not equal (canonicalizing).
assertNotEqualsIgnoringCaseAsserts that two variables are not equal (ignoring case).
assertNotEqualsWithDeltaAsserts that two variables are not equal (with delta).
assertNotFalseAsserts that a condition is not false.
assertNotInstanceOfAsserts that a variable is not of a given type.
assertNotIsReadableAsserts that a file/dir exists and is not readable.
assertNotIsWritableAsserts that a file/dir exists and is not writable.
assertNotNullAsserts that a variable is not null.
assertNotRegExpAsserts that a string does not match a given regular expression.
assertNotSameAsserts that two variables do not have the same type and value.
assertNotSameSizeAssert that the size of two arrays (or Countable or Traversable objects)
is not the same.
assertNotTrueAsserts that a condition is not true.
assertNullAsserts that a variable is null.
assertObjectEquals-
assertObjectHasAttributeAsserts that an object has a specified attribute.
assertObjectNotHasAttributeAsserts that an object does not have a specified attribute.
assertRegExpAsserts that a string matches a given regular expression.
assertSameAsserts that two variables have the same type and value.
assertSameSizeAssert that the size of two arrays (or Countable or Traversable objects)
is the same.
assertStringContainsString-
assertStringContainsStringIgnoringCase-
assertStringEndsNotWithAsserts that a string ends not with a given suffix.
assertStringEndsWithAsserts that a string ends with a given suffix.
assertStringEqualsFileAsserts that the contents of a string is equal
to the contents of a file.
assertStringEqualsFileCanonicalizingAsserts that the contents of a string is equal
to the contents of a file (canonicalizing).
assertStringEqualsFileIgnoringCaseAsserts that the contents of a string is equal
to the contents of a file (ignoring case).
assertStringMatchesFormatAsserts that a string matches a given format string.
assertStringMatchesFormatFileAsserts that a string matches a given format file.
assertStringNotContainsString-
assertStringNotContainsStringIgnoringCase-
assertStringNotEqualsFileAsserts that the contents of a string is not equal
to the contents of a file.
assertStringNotEqualsFileCanonicalizingAsserts that the contents of a string is not equal
to the contents of a file (canonicalizing).
assertStringNotEqualsFileIgnoringCaseAsserts that the contents of a string is not equal
to the contents of a file (ignoring case).
assertStringNotMatchesFormatAsserts that a string does not match a given format string.
assertStringNotMatchesFormatFileAsserts that a string does not match a given format string.
assertStringStartsNotWithAsserts that a string starts not with a given prefix.
assertStringStartsWithAsserts that a string starts with a given prefix.
assertThatEvaluates a PHPUnit\Framework\Constraint matcher object.
assertTrueAsserts that a condition is true.
assertXmlFileEqualsXmlFileAsserts that two XML files are equal.
assertXmlFileNotEqualsXmlFileAsserts that two XML files are not equal.
assertXmlStringEqualsXmlFileAsserts that two XML documents are equal.
assertXmlStringEqualsXmlStringAsserts that two XML documents are equal.
assertXmlStringNotEqualsXmlFileAsserts that two XML documents are not equal.
assertXmlStringNotEqualsXmlStringAsserts that two XML documents are not equal.
atReturns a matcher that matches when the method is executed
at the given index.
atLeastReturns a matcher that matches when the method is executed
at least N times.
atLeastOnceReturns a matcher that matches when the method is executed at least once.
atMostReturns a matcher that matches when the method is executed
at most N times.
callback-
classHasAttribute-
classHasStaticAttribute-
containsEqual-
containsIdentical-
containsOnly-
containsOnlyInstancesOf-
count-
countOf-
dataName-
directoryExists-
doesNotPerformAssertions-
doubledTypes-
equalTo-
equalToCanonicalizing-
equalToIgnoringCase-
equalToWithDelta-
exactlyReturns a matcher that matches when the method is executed
exactly $count times.
expectDeprecation-
expectDeprecationMessage-
expectDeprecationMessageMatches-
expectError-
expectErrorMessage-
expectErrorMessageMatches-
expectException-
expectExceptionCode-
expectExceptionMessage-
expectExceptionMessageMatches-
expectExceptionObjectSets up an expectation for an exception to be raised by the code under test.
expectNotToPerformAssertions-
expectNotice-
expectNoticeMessage-
expectNoticeMessageMatches-
expectOutputRegex-
expectOutputString-
expectWarning-
expectWarningMessage-
expectWarningMessageMatches-
failFails a test with the given message.
fileExists-
getActualOutput-
getActualOutputForAssertion-
getCountReturn the current assertion count.
getDataSetAsString-
getExpectedException-
getExpectedExceptionCode-
getExpectedExceptionMessage-
getExpectedExceptionMessageRegExp-
getGroups-
getMockBuilderReturns a builder object to create mock objects using a fluent interface.
getName-
getNumAssertionsReturns the number of assertions performed by this test.
getProvidedDataGets the data set of a TestCase.
getResult-
getSizeReturns the size of the test.
getStatus-
getStatusMessage-
getTestResultObject-
greaterThan-
greaterThanOrEqual-
hasExpectationOnOutput-
hasFailed-
hasOutput-
hasSize-
identicalTo-
isEmpty-
isFalse-
isFinite-
isInIsolation-
isInfinite-
isInstanceOf-
isJson-
isLarge-
isMedium-
isNan-
isNull-
isReadable-
isSmall-
isTrue-
isType-
isWritable-
lessThan-
lessThanOrEqual-
logicalAnd-
logicalNot-
logicalOr-
logicalXor-
markAsRisky-
markTestIncompleteMark the test as incomplete.
markTestSkippedMark the test as skipped.
matches-
matchesRegularExpression-
neverReturns a matcher that matches when the method is never executed.
objectEquals-
objectHasAttribute-
onConsecutiveCalls-
onceReturns a matcher that matches when the method is executed exactly once.
providesReturns the normalized test name as class::method.
registerComparator-
registerMockObject-
requiresReturns a list of normalized dependency names, class::method.
resetCountReset the assertion counter.
returnArgument-
returnCallback-
returnSelfReturns the current object.
returnValue-
returnValueMap-
runRuns the test case and collects the results in a TestResult object.
runBare-
setBackupGlobals-
setBackupStaticAttributes-
setBeStrictAboutChangesToGlobalState-
setDependencies-
setDependencyInput-
setGroups-
setInIsolation-
setName-
setOutputCallback-
setPreserveGlobalState-
setRegisterMockObjectsFromTestArgumentsRecursively-
setResult-
setRunClassInSeparateProcess-
setRunTestInSeparateProcess-
setTestResultObject-
setUpBeforeClassThis method is called before the first test of this test class is run.
sortId-
stringContains-
stringEndsWith-
stringStartsWith-
tearDownAfterClassThis method is called after the last test of this test class is run.
throwException-
toStringReturns a string representation of the test case.
usesDataProvider-

CustomMetadataTest::testCreateFields

Description

testCreateFields (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testCreateFieldsInvalidRequest

Description

testCreateFieldsInvalidRequest (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testCreateFieldsWithEmptyArrayParameter

Description

testCreateFieldsWithEmptyArrayParameter (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testCreateFieldsWithMissingLabel

Description

testCreateFieldsWithMissingLabel (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testCreateFieldsWithMissingName

Description

testCreateFieldsWithMissingName (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testCreateFieldsWithMissingSchema

Description

testCreateFieldsWithMissingSchema (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testCreateFieldsWithMissingSchemaType

Description

testCreateFieldsWithMissingSchemaType (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testCreateFieldsWithNonArrayParameter

Description

testCreateFieldsWithNonArrayParameter (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testDeleteFields

Description

testDeleteFields (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testDeleteFieldsWithMissingCustomMetadataFieldId

Description

testDeleteFieldsWithMissingCustomMetadataFieldId (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testGetFields

Description

testGetFields (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testGetFieldsWithInvalidIncludeDeleted

Description

testGetFieldsWithInvalidIncludeDeleted (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testGetFieldsWithoutIncludeDeleted

Description

testGetFieldsWithoutIncludeDeleted (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFields

Description

testUpdateFields (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsInvalidRequest

Description

testUpdateFieldsInvalidRequest (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsWithEmptyArrayBodyParameter

Description

testUpdateFieldsWithEmptyArrayBodyParameter (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsWithMissingBody

Description

testUpdateFieldsWithMissingBody (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsWithMissingCustomMetadataFieldId

Description

testUpdateFieldsWithMissingCustomMetadataFieldId (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsWithMissingLabel

Description

testUpdateFieldsWithMissingLabel (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsWithMissingSchema

Description

testUpdateFieldsWithMissingSchema (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsWithMissingSchemaType

Description

testUpdateFieldsWithMissingSchemaType (void)

Parameters

This function has no parameters.

Return Values

void


CustomMetadataTest::testUpdateFieldsWithNonArrayBodyParameter

Description

testUpdateFieldsWithNonArrayBodyParameter (void)

Parameters

This function has no parameters.

Return Values

void


Clone this wiki locally