public function testHas()
 {
     $container = new SortingContainer();
     $container->add('foo', 'f.bar');
     $this->assertTrue($container->has('foo'));
     $this->assertFalse($container->has('bar'));
 }
 /**
  * Add a sorting to the sorting container
  *
  * @param string $key   Key
  * @param string $field Field
  * @param string $label Label
  *
  * @return Paginator
  */
 public function addSorting($key, $field, $label = null)
 {
     $this->sortings->add($key, $field, $label);
     return $this;
 }