/** * Tests that it is possible to pass the saveAssociated strategy in the constructor * * @return void */ public function testSaveStrategyInOptions() { $assoc = new BelongsToMany('Test', ['saveStrategy' => BelongsToMany::SAVE_APPEND]); $this->assertEquals(BelongsToMany::SAVE_APPEND, $assoc->saveStrategy()); }