コード例 #1
0
ファイル: ListingTest.php プロジェクト: bravadomizzou/dewdrop
 public function testListingWillUseManuallyProvidedRequestObject()
 {
     $request = new Request();
     $listing = new Listing($this->model->selectListing(), $this->model->field('dewdrop_test_fruit_id'), $request);
     $this->assertEquals(spl_object_hash($request), spl_object_hash($listing->getRequest()));
     $this->assertNotEquals(spl_object_hash(Pimple::getResource('dewdrop-request')), spl_object_hash($listing->getRequest()));
 }
コード例 #2
0
ファイル: BulkActions.php プロジェクト: bravadomizzou/dewdrop
 /**
  * Get the Request used by the Listing.  Method provided here so we can hide
  * the Listing itself from actions, etc., while still providing access to the
  * HTTP request.
  *
  * @return \Dewdrop\Request
  */
 public function getRequest()
 {
     return $this->listing->getRequest();
 }