src/Concerns/MakesAssertions.php
/**
     * Assert that the given checkbox field is checked.
     *
     * @param  string  $field
     * @return $this
     */
Assert that the given checkbox field is checked.
@param  string  $field
@return $this
Assert that the given checkbox field is checked . @param string $field @return $this
public function assertChecked($field)
    {
        $element = $this->resolver->resolveForChecking($field);
        PHPUnit::assertTrue(
            $element->isSelected(),
            "Expected checkbox [{$field}] to be checked, but it wasn't."
        );
        return $this;
    }
public function assertChecked ( $ field ) { $ element = $ this -> resolver -> resolveForChecking ( $ field ) ; PHPUnit :: assertTrue ( $ element -> isSelected ( ) , " Expected checkbox [ { $ field } ] to be checked, but it wasn't. " ) ; return $ this ; }
Assert that the given checkbox field is checked.
Assert that the given checkbox field is checked .