You are here

protected function ManagedFileBase::assertFieldValue in Managed File 7

Check that field has a value.

Parameters

string|array $name: Field name.

mixed|null $value: Field value.

Return value

bool TRUE on pass, FALSE on fail.

1 call to ManagedFileBase::assertFieldValue()
ManagedFileTestCase::testWidgetIntegrity in tests/managed_file.test
Test integrity of the widget.

File

tests/managed_file_base.test, line 68
Managed File Base (Test).

Class

ManagedFileBase
Class ManagedFileBase.

Code

protected function assertFieldValue($name, $value = NULL) {
  return $this
    ->assertFieldByXpath($this
    ->getFieldXpath($name), $value);
}