/**
  * action update
  *
  * @param \GK\Stdapp\Domain\Model\CustomerSubtype $customerSubtype
  * @return void
  */
 public function updateAction(\GK\Stdapp\Domain\Model\CustomerSubtype $customerSubtype)
 {
     if (($url = trim($customerSubtype->getUrl())) && !preg_match('/^https?:/', $url)) {
         $customerSubtype->setUrl('http://' . $url);
     }
     $this->customerSubtypeRepository->update($customerSubtype);
     $this->flashMessageContainer->add('Your CustomerSubtype was updated.');
     $this->redirect('edit');
 }
示例#2
0
 /**
  * @test
  */
 public function setUrlForStringSetsUrl()
 {
     $this->fixture->setUrl('Conceived at T3CON10');
     $this->assertSame('Conceived at T3CON10', $this->fixture->getUrl());
 }