Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSingleTableHasManyAssociation (0.21 sec)

  1. tests/associations_has_many_test.go

    		t.Errorf("Error happened when clear Pets, got %v", err)
    	}
    
    	AssertAssociationCount(t, user2, "Pets", 0, "after clear")
    }
    
    func TestSingleTableHasManyAssociation(t *testing.T) {
    	user := *GetUser("hasmany", Config{Team: 2})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	CheckUser(t, user, user)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top