/**
* Will test if the composer functions correct when the configure method is called
*/
public function testConfigureColumn()
{
$name = "fooBar";
$config = ColumnConfigurationBuilder::create()->name($name)->build();
$this->composer->add($config);
// get configuration and verify
$numberOfColumns = count($this->composer->getColumnConfiguration());
$this->assertSame($numberOfColumns, 1, "There should only be one column configuration");
/**
* @var ColumnConfiguration
*/
$cc = $this->composer->getColumnConfiguration()[0];
$func = $cc->getCallable();
$this->assertTrue($cc->getSearch()->isSearchable(), "The column should not be searchable");
$this->assertTrue($cc->getOrder()->isOrderable(), "The column should be orderable");
$this->assertSame($name, $cc->getName(), "The name should be set to 'fooBar'");
$this->assertSame("bar", $func(["fooBar" => "bar"]));
}