NONE() public static method

Will construct a new searchable instance that is not searchable and is not regex searchable.
public static NONE ( ) : OpenSkill\Datatable\Columns\Searchable\NoneSearchable
return OpenSkill\Datatable\Columns\Searchable\NoneSearchable
 /**
  * Will test if the query parser will ignore search and order advise if the columns forbid them
  *
  */
 public function testWrongParsing()
 {
     // create columnconfiguration
     $column = ColumnConfigurationBuilder::create()->name("fooBar")->orderable(Orderable::NONE())->searchable(Searchable::NONE())->build();
     $conf = $this->parser->parse($this->request, [$column]);
     // assert column search
     $this->assertCount(0, $conf->searchColumns());
     // assert column order
     $this->assertCount(0, $conf->orderColumns());
 }
 private function orderAndSearchNotImplementedTest($searchableType = null)
 {
     $queryConfiguration = QueryConfigurationBuilder::create()->start(0)->length(4)->drawCall(1)->columnOrder('name', 'asc')->columnOrder('id', 'desc');
     $queryConfiguration = $queryConfiguration->searchValue('blah');
     $queryConfiguration = $queryConfiguration->build();
     $columnConfiguration = [];
     $columnConfiguration[] = ColumnConfigurationBuilder::create()->name('id')->searchable(Searchable::NONE())->build();
     $columnConfiguration[] = ColumnConfigurationBuilder::create()->name('name')->searchable($searchableType)->build();
     // Set up mock item
     $queryBuilder = $this->setupMockQueryBuilder();
     $provider = new QueryBuilderProvider($queryBuilder);
     $provider->prepareForProcessing($queryConfiguration, $columnConfiguration);
     $provider->process();
 }
 /**
  * Will test that the global search respects individual column settings
  */
 public function testGlobalSearchWithIndividualColumn()
 {
     $data = [['id' => 1, 'name' => 'foo'], ['id' => 2, 'name' => 'bar']];
     $queryConfiguration = QueryConfigurationBuilder::create()->start(0)->length(2)->searchValue('foo')->drawCall(1)->build();
     $columnConfiguration = ColumnConfigurationBuilder::create()->name('id')->build();
     $columnConfiguration2 = ColumnConfigurationBuilder::create()->name('name')->searchable(Searchable::NONE())->build();
     $provider = new CollectionProvider(new Collection($data));
     $provider->prepareForProcessing($queryConfiguration, [$columnConfiguration, $columnConfiguration2]);
     $data = $provider->process();
     $this->assertSame(0, $data->data()->count());
 }
 /**
  * Will check if the column method with the name and a callable as well as the searchable and orderable flag has
  * all values set to the right defaults
  */
 public function testNameFunctionSearchableOrderableColumn()
 {
     $name = "fooBar";
     $callable = function ($data) {
         return "bar";
     };
     $this->composer->column($name, $callable, Searchable::NONE(), Orderable::NONE());
     // 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];
     /**
      * @var callable
      */
     $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"));
 }
 public function testClass()
 {
     $t = Searchable::NONE();
     $this->assertFalse($t->isSearchable());
 }