src/Concerns/MakesAssertions.php
public function assertSelectHasOptions($field, array $values)
    {
        $options = $this->resolver->resolveSelectOptions($field, $values);

        $options = collect($options)->unique(function (RemoteWebElement $option) {
            return $option->getAttribute('value');
        })->all();

        PHPUnit::assertCount(
            count($values), $options,
            'Expected options ['.implode(',', $values)."] for selection field [{$field}] to be available."
        );

        return $this;
    }
public function assertSelectHasOptions($field, array $values)
    {
        $options = $this->resolver->resolveSelectOptions($field, $values);

        $options = collect($options)->unique(function (RemoteWebElement $option) {
            return $option->getAttribute('value');
        })->all();

        PHPUnit::assertCount(
            count($values), $options,
            'Expected options ['.implode(',', $values)."] for selection field [{$field}] to be available."
        );

        return $this;
    }
public function assertSelectHasOptions ( $ field , array $ values ) { $ options = $ this -> resolver -> resolveSelectOptions ( $ field , $ values ) ; $ options = collect ( $ options ) -> unique ( function ( RemoteWebElement $ option ) { return $ option -> getAttribute ( 'value' ) ; } ) -> all ( ) ; PHPUnit :: assertCount ( count ( $ values ) , $ options , 'Expected options [' . implode ( ',' , $ values ) . "] for selection field [{$field}] to be available." ) ; return $ this ; }
Assert that the given array of values are available to be selected.

@param string  $field
@param array  $values
@return $this
Assert that the given array of values are available to be selected .