PHP Class BulkChangeTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: opensrs/osrs-toolkit-php

Protected Properties

Property Type Description
$change_types
$validSubmission

Public Methods

Method Description
submissionFields ( ) Data Provider for Invalid Submission test.
testInvalidSubmissionFieldsMissing ( $field, $parent = 'attributes', $message = null ) Invalid submission should throw an exception.
testLoadingChangeTypeClasses ( ) Make sure class names are generated from each change_type correctly and that the classes load without error Correct values stored in $this->change_types array, index is change_type, value is expected class name.
testValidSubmission ( ) Valid submission should complete with no exception thrown.

Method Details

submissionFields() public method

Data Provider for Invalid Submission test.
public submissionFields ( )

testInvalidSubmissionFieldsMissing() public method

Invalid submission should throw an exception.
public testInvalidSubmissionFieldsMissing ( $field, $parent = 'attributes', $message = null )

testLoadingChangeTypeClasses() public method

Make sure class names are generated from each change_type correctly and that the classes load without error Correct values stored in $this->change_types array, index is change_type, value is expected class name.

testValidSubmission() public method

Valid submission should complete with no exception thrown.
public testValidSubmission ( )

Property Details

$change_types protected property

protected $change_types

$validSubmission protected property

protected $validSubmission