Ojs\JournalBundle\Entity\Block::setBlockOrder PHP Method

setBlockOrder() public method

Set blockOrder
public setBlockOrder ( integer $blockOrder ) : Block
$blockOrder integer
return Block
    public function setBlockOrder($blockOrder)
    {
        $this->blockOrder = $blockOrder;
        return $this;
    }

Usage Example

コード例 #1
0
ファイル: BlockControllerTest.php プロジェクト: ojs/ojs
 public function testDelete()
 {
     $em = $this->em;
     $entity = new Block();
     $entity->setCurrentLocale('en');
     $entity->setTitle('Block');
     $entity->setBlockOrder(1);
     $entity->setColor('success');
     $journal = $em->getRepository('OjsJournalBundle:Journal')->find('1');
     $entity->setJournal($journal);
     $em->persist($entity);
     $em->flush();
     $id = $entity->getId();
     $this->logIn();
     $client = $this->client;
     $token = $this->generateToken('ojs_journal_block' . $id);
     $client->request('DELETE', '/journal/1/block/' . $id . '/delete', array('_token' => $token));
     $this->assertStatusCode(302, $client);
 }
All Usage Examples Of Ojs\JournalBundle\Entity\Block::setBlockOrder